Commit Graph

132386 Commits

Author SHA1 Message Date
MDW
2a534539cb Fix json_decode requires bool for arg2 fixes PhanTypeMismatchArgumentInternal 2024-03-18 04:03:48 +01:00
MDW
95a7800115 Fix cast to int for fsockopen fixes PhanTypeMismatchArgumentInternal 2024-03-18 04:03:47 +01:00
MDW
257f65cc47 Fix return type for callbak of array_filter to bool fixes PhanTypeMismatchArgumentInternal 2024-03-18 04:03:46 +01:00
MDW
c4ab5a0437 Fix typing for attributes: list to int|string, add pos (fixes PhanTypeMismatchArgumentInternal) 2024-03-18 04:03:45 +01:00
MDW
ef97d549c6 Fix cast int to string for strpos fixes PhanTypeMismatchArgumentInternal 2024-03-18 02:33:19 +01:00
MDW
4df0e3890b Fix is already int, remove trim&casts fixes PhanTypeMismatchArgumentInternal 2024-03-18 02:30:50 +01:00
MDW
3b9c03f898 Fix cast int to string for preg_replace fixes PhanTypeMismatchArgumentInternal 2024-03-18 02:27:29 +01:00
MDW
c2ea58a8e2 Fix: strlen(trim(country_id))==0 to country_id==0 fixes phantypemismatchargumentinternal 2024-03-18 02:25:51 +01:00
MDW
07d135f14d Fix: cast int to string for str_pad fixes PhanTypeMismatchArgumentInternal 2024-03-18 02:22:54 +01:00
MDW
b6b501a0e7 Fix: cast int to string for str_pad fixes PhanTypeMismatchArgumentInternal 2024-03-18 02:21:27 +01:00
MDW
769174bf6b Fix: cast int to string for str_pad fixes PhanTypeMismatchArgumentInternal 2024-03-18 02:19:53 +01:00
MDW
a4a4025ffe Fix: cast int to string for str_pad fixes PhanTypeMismatchArgumentInternal 2024-03-18 02:16:20 +01:00
MDW
ae3bc300a1 Fix: remove strtoupper on int fixes PhanTypeMismatchArgumentInternal 2024-03-18 02:15:10 +01:00
MDW
87288a1a17 Fix: cast int to string for str_pad fixes PhanTypeMismatchArgumentInternal 2024-03-18 02:08:55 +01:00
MDW
e0069026b3 Fix abs() on value after price2num() not before fixes PhanTypeMismatchArgumentInternal 2024-03-18 02:06:53 +01:00
Laurent Destailleur
5e51092efd Merge pull request #28926 from frederic34/phpstanphpstan
fix phpstan
2024-03-17 21:57:25 +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
9320ea03ee Merge pull request #27030 from glu000/18.0-issue27029
Fix #27029
2024-03-17 21:51:07 +01:00
Laurent Destailleur
ac1ae64ef8 Merge branch '18.0' into 18.0-issue27029 2024-03-17 21:49:12 +01:00
Laurent Destailleur
313f3f592a Close #27037 2024-03-17 21:47:18 +01:00
Laurent Destailleur
3b5aa4bed7 Doc 2024-03-17 21:36:25 +01:00
Laurent Destailleur
763f584ea2 Doc 2024-03-17 21:33:39 +01:00
Laurent Destailleur
63a6b77a74 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-17 21:31:40 +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
Frédéric France
c8e3dfb995 fix phpstan 2024-03-17 21:31:26 +01:00
Frédéric France
5c5c0aecd6 fix phpstan 2024-03-17 21:27:48 +01:00
Laurent Destailleur
ad99b89856 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-17 21:25:46 +01:00
Frédéric France
17ea003a69 fix phpstan 2024-03-17 21:20:36 +01:00
Laurent Destailleur
90ecb139b3 Merge pull request #28919 from mdeweerd/fix/trim
Fix several useless trims or bad arguments to trim (PhanTypeMismatchArgumentInternal) & related bugs
2024-03-17 21:14:13 +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
Laurent Destailleur
5b5d019362 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-17 21:07:38 +01:00
Laurent Destailleur
9627894d8d More default values for colors 2024-03-17 21:07:21 +01:00
Laurent Destailleur
d045b0c0b7 Merge pull request #28916 from mdeweerd/fix/phan/lowoccurrence2
Qual: Fix & enable some low occurence notifications
2024-03-17 20:52:22 +01:00
Laurent Destailleur
eff2f4da7f Merge branch 'develop' into fix/phan/lowoccurrence2 2024-03-17 20:27:59 +01:00
Laurent Destailleur
b117d24cba Try to fix PhanUndeclaredFunctionInCallable 2024-03-17 20:26:05 +01:00
MDW
6148a0f7a3 fixup! Fix PhanUndeclaredFunctionInCallable by disabling notification in specific case 2024-03-17 20:12:55 +01:00
MDW
012f284b3d Fix PhanParamSuspiciousOrder by suppressing notification 2024-03-17 20:12:53 +01:00
MDW
6c7a7a8678 Fix PhanPluginSuspiciousParamOrder by exchanging argument positions 2024-03-17 20:12:51 +01:00
MDW
081963fa14 Fix PhanPluginSuspiciousParamOrder by exchanging argument positions 2024-03-17 20:12:49 +01:00
MDW
7ab07a1549 Fix PhanPluginSuspiciousParamOrder in updete() by removeing arg 2024-03-17 20:12:47 +01:00
MDW
18cfd0dae6 Fix PhanTypeComparisonFromArray by testing $error field
# Fix PhanTypeComparisonFromArray by testing $error field

getListOfPayments always returns an array, comparing it to 0 is invalid.
To know if there was an error, we should test error, not the size of the result.
Updated getListOfPayments as well to initialize error to ""
2024-03-17 20:12:45 +01:00
MDW
dbe8aacd0a Fix PhanParamSuspiciousOrder by ignoring notification 2024-03-17 20:12:43 +01:00
MDW
d79ca5f126 Fix PhanParamSuspiciousOrder by ignoring notification 2024-03-17 20:12:41 +01:00
MDW
013d1cc54f Fix PhanParamSuspiciousOrder by ignoring notification 2024-03-17 20:12:39 +01:00
MDW
fe6c5e132a Fix PhanPluginUnsafeEval by disabling notification in dol_eval 2024-03-17 20:12:37 +01:00
MDW
66c592717d Fix PhanTypeMismatchBitwiseBinaryOperands by typing argument 2024-03-17 20:12:35 +01:00
MDW
78f2e8752e Fix PhanPluginUnsafeEval by ignoring notification 2024-03-17 20:12:33 +01:00
MDW
7d15cd3267 Fix PhanUndeclaredFunctionInCallable by disabling notification in specific case 2024-03-17 20:12:31 +01:00
MDW
46d66b7825 Qual: Force phan type to fix PhanPluginSuspiciousParamOrder 2024-03-17 20:12:29 +01:00