MDW
f91d32de86
Qual: Fix typing - module_parts['hooks'] may be empty
...
# Qual: Fix typing - moduleparts['hooks'] may be empty
PHPstan reported on initialisation mismatch when module_parts['hooks']
is initialised to empty array. This change makes the fields optional.
2024-03-15 10:46:20 +01:00
Laurent Destailleur
c664cdae0f
NEW Init of a module with a website template copy also the preview
2024-03-14 12:39:42 +01:00
MDW
8e1b6543b8
Qual: Typing : make all $module_parts fields optional and add missing
...
# Qual: Typing : make all $module_parts fields optional and add missing
According to the initialisations of the modules all fields for $module_parts are optional
and some keys were missing in the definition.
This is updated.
2024-03-11 18:13:04 +01:00
Laurent Destailleur
39ea68ace4
Try fix phan
2024-03-11 15:20:56 +01:00
MDW
aee0509473
Qual: Force typing on variable fixing several phan notices ( #28740 )
...
* Qual: Force typing on variable fixing several phan notices
# Qual: Force typing on variable fixing several phan notices
Forcing DolibarrModules on $objMod after assignment to fix typing checks
* Qual: Fix typing on import_label/export_label
2024-03-11 12:56:55 +01:00
MDW
37afba949e
Fix most PhanTypeMismatchDimAssignment notices ( #28739 )
...
* Qual: Add typing to fix PhanTypeMismatchDimAssignment notice
* Fix: Initialise array for code in somme
* Qual: Update type hint for argument in _Set_Format
* Qual: Update type hint for childtables
* Qual: Add typing to attributes
* Qual: Add typing for _msgContent
* Qual: Suppress PhanTypeMismatchDimAssignment
* Qual: Add typing for liste
* Qual: Add typing to fields
* Qual: Add typing hint for $objMod
* Qual: Modify assignment of array with bool keys for phan typing
Demonstration:
```
php -r '$a=[true=>"yes",false=>"no"];var_dump($a);'
# Result demonstrates bool keys are converted to int.
Command line code:1:
array(2) {
[1] =>
string(3) "yes"
[0] =>
string(2) "no"
}
```
* Qual: Add typing hint to indicate value is not null
* Force non-null type on $paramname
* Qual: Add typing hint to getCats()
* Update inc.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-03-10 01:53:04 +01:00
Frédéric FRANCE
a2c92f183c
Phpstan fix ( #28637 )
...
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
2024-03-05 17:12:36 +01:00
Laurent Destailleur
ce010a54c7
Clean code and prepare a more powerfull phpunit check for sql forging.
2024-03-05 00:22:12 +01:00
Laurent Destailleur
838c748fae
Reduce variable parts into website template so risk of git conflict is
...
lower
2024-02-22 17:30:54 +01:00
thibdrev
999af4951b
qual: phpstan - various "$hidden (bool) does not accept string." ( #28350 )
...
* Update modWebsite.class.php
* Update DolibarrModules.class.php
* Update modCron.class.php
* Update modSocialNetworks.class.php
* qual: phpstan for htdocs/core/modules/modCollab.class.php
htdocs/core/modules/modCollab.class.php 68 Property DolibarrModules::$hidden (bool) does not accept string.
2024-02-22 13:27:04 +01:00
William Mead
a833d059d9
Fixed getModulePosition type return. Fixed missing langs. ( #28131 )
2024-02-13 09:14:28 +01:00
Laurent Destailleur
904bc424b4
Fix missing $langs
2024-02-12 16:43:46 +01:00
Laurent Destailleur
1caf853528
Work on website templates from modules
2024-02-12 02:52:35 +01:00
MDW
89004f7e03
Qual: Spelling htdocs/core ( #27491 )
...
Highlights:
- initialY in pdf_standard.modules.php was unused
- remove (otherwise -> initially) (+same in other file)
2024-01-13 19:48:20 +01:00
MDW
39769482b1
Qual: Fix typing hints for DoliDB ( #27484 )
...
# Qual: Fix typing hints for DoliDB
This should help the static tools for type and method checking.
2024-01-13 15:50:02 +01:00
Laurent Destailleur
b28ae5d8d3
Clean code
2023-12-27 12:12:20 +01:00
Frédéric FRANCE
61b79fda17
avoid phpstan error with phpdoc
2023-12-06 15:46:39 +01:00
Laurent Destailleur
9e1b90e4a1
Fix with php-cs-fixer
2023-12-04 12:07:31 +01:00
Laurent Destailleur
7c756574b6
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
...
develop
2023-12-02 14:52:36 +01:00
Alexandre SPANGARO
ccfb5e2730
Debug v18 ( #26877 )
...
* Fix column name - Colspan problem
* Update DolibarrModules.class.php
2023-11-28 09:18:16 +01:00
Laurent Destailleur
53dab922fd
Fix php8.2 warnings
2023-11-27 11:39:32 +01:00
Frédéric FRANCE
be9cbeb1b6
Update DolibarrModules.class.php ( #26770 )
2023-11-20 23:45:35 +01:00
Laurent Destailleur
62c1baaa61
Clean param
2023-10-20 21:01:59 +02:00
Laurent Destailleur
01a139158d
Debug v19
2023-10-16 21:15:03 +02:00
Laurent Destailleur
cbb60d8b5e
Debug v19
2023-10-14 16:23:28 +02:00
Laurent Destailleur
c507adeef7
NEW Top menu support picto of modules that are font awesome picto.
2023-10-13 15:00:51 +02:00
Laurent Destailleur
c0f27e5a57
Fix warning
2023-08-06 00:30:00 +02:00
Laurent Destailleur
b52c79dcfe
Fix warnings
2023-08-04 04:37:10 +02:00
Florent Poinsaut
47ea0c274b
Fix delete_module_parts with multicompagny ( #25411 )
2023-07-23 19:48:59 +02:00
Laurent Destailleur
b1e0b317c9
Debug v18
2023-06-29 13:16:44 +02:00
Laurent Destailleur
fb51c902a6
Debug v18
2023-06-28 12:05:51 +02:00
Laurent Destailleur
d5170e0f4b
Debug v18
2023-06-26 23:10:44 +02:00
Laurent Destailleur
b6a061f795
Debug v18 - warnings and pgsql migration
2023-06-26 23:02:17 +02:00
Laurent Destailleur
f0fd249498
Fix warnings
2023-06-26 16:22:00 +02:00
Laurent Destailleur
c6cb29381e
Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop
2023-05-11 19:09:19 +02:00
Laurent Destailleur
4ab5489884
Clean code
2023-05-10 16:33:07 +02:00
Laurent Destailleur
a1b41a22db
Fix dolMd2Html
2023-04-30 15:13:04 +02:00
Laurent Destailleur
bf89d61686
NEW Update lib parsedownto 1.7.4
2023-04-22 01:01:08 +02:00
Regis Houssin
898a4bad15
FIX menu force entity = 0 if core module
2023-03-29 14:34:52 +02:00
Frédéric FRANCE
d243e10588
add doc
2023-03-14 09:36:58 +01:00
Laurent Destailleur
704faf734a
NEW Auto activate some modules on install (export/import/wysiwyg editor)
2023-02-09 00:47:33 +01:00
Laurent Destailleur
1e91077f09
Merge pull request #23464 from frederic34/patch-7
...
fix warnings
2023-01-18 23:50:00 +01:00
Laurent Destailleur
5fc9e093eb
css
2023-01-13 14:09:54 +01:00
Laurent Destailleur
ad00a17ac3
Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop
2023-01-13 13:03:54 +01:00
Laurent Destailleur
f251e92eaa
Fix warning
2023-01-12 10:27:11 +01:00
Frédéric FRANCE
baeff3710c
Update DolibarrModules.class.php
2023-01-09 12:09:16 +01:00
Frédéric FRANCE
64a59b3a4b
fix warnings
2023-01-09 11:56:43 +01:00
Laurent Destailleur
8abde17e95
Fix warning
2022-12-30 12:15:18 +01:00
Laurent Destailleur
c886bad8b6
Fix warning
2022-12-28 17:00:28 +01:00
Laurent Destailleur
c26747b15a
Fix warnings
2022-12-28 03:59:29 +01:00