Commit Graph

11176 Commits

Author SHA1 Message Date
MDW
397cd58f26 Fix arg types to substr(),mb_strcut() and number_format() by casting & typing 2024-03-19 02:59:13 +01:00
MDW
add3d0e150 Fix $port type to ssh2_connect, ftp_ssl_connect, ftp_connect with cast 2024-03-19 02:59:12 +01:00
MDW
c406ae4502 Fix args to strrev, imagefilledrectangle and imagettftext
# Fix args to strrev, imagefilledrectangle and imagettftext

Fix by initialising to string, and casting round() to int (return is float)
2024-03-19 02:59:11 +01:00
MDW
c0e8e053b8 Fix port arg to count by adding typing information 2024-03-19 02:59:09 +01:00
MDW
9647c46371 Add empty lines to avoid comment alignments 2024-03-19 02:44:05 +01:00
MDW
187e715bc5 Fix PhanTypeSuspiciousStringExpression 2024-03-19 02:43:58 +01:00
MDW
378bb482c7 Fix PhanTypeSuspiciousStringExpression 2024-03-19 02:43:40 +01:00
MDW
0284ef4b66 Fix PhanTypeSuspiciousStringExpression 2024-03-19 02:43:26 +01:00
MDW
5037995454 Fix PhanTypeSuspiciousStringExpression 2024-03-19 02:43:24 +01:00
MDW
4728b1ec5e Fix PhanTypeSuspiciousStringExpression 2024-03-19 02:43:23 +01:00
MDW
d30b2d0362 Fix default in $fields init 2024-03-19 00:32:03 +01:00
Jon Bendtsen
fce674e347 precommit check failed 2024-03-18 22:42:57 +01:00
Jon Bendtsen
1a35b20cb7 only counts notifications for existing contacts. SQL code copy from htdocs/societe/notify/card.php 2024-03-18 22:28:10 +01:00
Laurent Destailleur
13f7012d40 NEW Add maintenance tool to switch utf8 -> utf8mb4 2024-03-18 18:17:53 +01:00
Laurent Destailleur
57181e6407 Typo 2024-03-18 15:28:19 +01:00
Laurent Destailleur
034ce8cb98 Fix trans key code 2024-03-18 14:44:18 +01:00
Laurent Destailleur
de4933f814 Merge pull request #28940 from lamrani002/customTemplateMail
NEW auto fill infos in template email
2024-03-18 14:43:10 +01:00
Laurent Destailleur
a956539b09 Merge pull request #28937 from mdeweerd/fix/PhanUndeclaredVariableAssignOp
Fix & enable PhanUndeclaredVariableAssignOp
2024-03-18 14:37:34 +01:00
Laurent Destailleur
6640354e79 Move to use the english key name ofmodule 2024-03-18 14:32:59 +01:00
Laurent Destailleur
d9ba301611 Merge pull request #28890 from zephyriony/patch-1
Proposed function for records that can't be found
2024-03-18 14:25:31 +01:00
MDW
bee172c4b7 Fix: Initialise $x to fix PhanUndeclaredVariableAssignOp & optimize 2024-03-18 13:12:47 +01:00
Lamrani Abdel
632ee1b81b NEW auto fill infos in template email 2024-03-18 04:36:25 +01:00
MDW
ce66366dd1 Fix file_get_contents() does not use "r", str_replace (PhanTypeMismatchArgumentInternal) 2024-03-18 04:03:53 +01:00
MDW
d3e6a83d70 Fix PhanTypeMismatchArgumentInternal - apply casts tofix 2024-03-18 04:03:51 +01:00
Laurent Destailleur
efd77f4197 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-17 21:55:15 +01:00
Laurent Destailleur
27db740058 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-03-17 21:53:32 +01:00
Laurent Destailleur
f7f64651c9 Fix bad merge 2024-03-17 21:52:45 +01:00
Laurent Destailleur
ac1ae64ef8 Merge branch '18.0' into 18.0-issue27029 2024-03-17 21:49:12 +01:00
Laurent Destailleur
ebba438fbe Merge pull request #27528 from altairisfr/rdb
[DATA_MODEL] rename commande_fournisseur_dispatch into receptiondet_batch
2024-03-17 21:31:27 +01:00
Laurent Destailleur
bb0e18deae Merge pull request #28922 from mdeweerd/fix/printf
Fix & enable Phan printf checks
2024-03-17 21:08:26 +01:00
MDW
fe6c5e132a Fix PhanPluginUnsafeEval by disabling notification in dol_eval 2024-03-17 20:12:37 +01:00
Laurent Destailleur
0c7fc1ef09 Fix NOOP 2024-03-17 20:08:53 +01:00
MDW
66e88e123c Fix PhanPluginPrintfIncompatibleArgumentType by typing/casting 2024-03-17 18:56:48 +01:00
MDW
25dd2433a1 Fix PhanPluginPrintfIncompatibleArgumentType by typing/casting 2024-03-17 18:56:47 +01:00
MDW
da4b3b2e07 Fix/ignore PhanPluginPrintfVariableFormatString 2024-03-17 18:56:38 +01:00
Laurent Destailleur
ca76798afd NEW Add a protection in inventory when a product has stock of lot and is
not lot managed.
2024-03-17 02:16:51 +01:00
Laurent Destailleur
e8596c61c3 Fix phan 2024-03-16 22:18:58 +01:00
Laurent Destailleur
87388d7dab Debug v20 2024-03-16 21:33:55 +01:00
Alfredo Altamirano
4ee4d1678f fix #28892 change default table ref on modulebuilder new dictionaries 2024-03-16 16:59:31 +00:00
Laurent Destailleur
b3108d1790 Merge branch 'develop' into fix/PhanTypeMismatchReturn 2024-03-16 16:27:32 +01:00
Laurent Destailleur
aee90023d3 Merge branch 'develop' into fix_element_type_part_06 2024-03-16 16:11:56 +01:00
Zephyriony
d5e6fac6de Merge branch 'develop' into patch-1 2024-03-16 14:37:54 +01:00
MDW
9eed23c6d0 Fix return type by cast or typing update
# Fix return type by cast or typing update

Fix most PhanTypeMismatchReturn notifications.

The remaining ones are likely real bugs or need more Dolibarr
knowledge to fix them efficiently
2024-03-16 13:52:12 +01:00
Laurent Destailleur
a247b474d7 Merge pull request #28885 from mdeweerd/fix/phan/low_occurrence
Fix some phan notifications with low occurrence
2024-03-16 11:48:10 +01:00
Zephyriony
3b0bd0c427 Update functions.lib.php 2024-03-16 00:49:12 +01:00
Zephyriony
3fba583ffa Update functions.lib.php 2024-03-16 00:46:40 +01:00
Zephyriony
0c7ed79f40 Update functions.lib.php 2024-03-16 00:42:57 +01:00
Zephyriony
82dc53e796 Update functions.lib.php 2024-03-16 00:36:43 +01:00
Zephyriony
cd47aa1aad Update functions.lib.php 2024-03-16 00:34:09 +01:00
Zephyriony
dd7f84abde Update functions.lib.php 2024-03-16 00:30:24 +01:00