Commit Graph

14003 Commits

Author SHA1 Message Date
Laurent Destailleur
a956539b09
Merge pull request #28937 from mdeweerd/fix/PhanUndeclaredVariableAssignOp
Fix & enable PhanUndeclaredVariableAssignOp
2024-03-18 14:37:34 +01:00
Laurent Destailleur
90882d46b2
Update factures.php 2024-03-18 14:36:09 +01:00
Laurent Destailleur
d59da81dff Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-18 14:04:26 +01:00
Laurent Destailleur
3368041587 Fix filter 2024-03-18 14:04:10 +01:00
MDW
c5b62a4a73
Add typing to fix PhanTypeMismatchDimFetch 2024-03-18 13:55:03 +01:00
MDW
31482901d2
Fix PhanPossiblyUndeclaredGlobalVariable and PhanPossiblyUndeclaredGlobalVariable 2024-03-18 13:54:05 +01:00
MDW
935f788774
Fix: Initilialise $total_ttc to fix PhanUndeclaredVariableAssignOp 2024-03-18 12:20:44 +01:00
MDW
ef6b594001
Fix: Initilialise $amount_ttc_diff to fix PhanUndeclaredVariableAssignOp 2024-03-18 12:19:28 +01:00
MDW
4f46795006
Fix PhanTypeMismatchArgumentInternal - apply casts tofix 2024-03-18 04:03:52 +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
Frédéric France
049f660ea6 fix phpstan 2024-03-17 19:10:40 +01:00
MDW
207314ea59
Fix PhanPluginPrintfIncompatibleArgumentType by typing/casting 2024-03-17 18:56:46 +01:00
Frédéric FRANCE
0f92d6d957
fix phpstan 2024-03-17 07:43:18 +01:00
Laurent Destailleur
de58435ef1 FIX: if we stop for security purpose, we must exit a non zero value. 2024-03-16 23:08:15 +01:00
MDW
13ab939691
Fix deprecated function calls 2024-03-16 13:27:51 +01:00
Laurent Destailleur
e15f243e95 Clean code - Remove a deprecated tag that should not exists. 2024-03-16 11:51:32 +01:00
Laurent Destailleur
e994d6650f Fix regression in GETPOST limit 2024-03-16 11:41:00 +01:00
Laurent Destailleur
25dd05c35e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-16 10:45:55 +01:00
Frédéric France
41fccbaac5 fix phpstan warnings 2024-03-16 08:49:50 +01:00
Frédéric France
a48c3215a1 fix phpstan warnings 2024-03-16 08:43:08 +01:00
Laurent Destailleur
79aa9fb1f1 Code simpler 2024-03-15 20:29:21 +01:00
Laurent Destailleur
372c8445fd
Merge pull request #28809 from mdeweerd/PhanPluginPrintfIncompatibleArgumentTypeWeak
Fix & enable PhanPluginPrintfIncompatibleArgumentTypeWeak occurrences
2024-03-15 16:32:40 +01:00
Laurent Destailleur
b658beab99
Merge pull request #28872 from mdeweerd/fix/PhanTypeMismatchReturnProbablyReal
Fix & enable PhanTypeMismatchReturnProbablyReal
2024-03-15 15:24:31 +01:00
Laurent Destailleur
e3c4c1aff0 Fix warning 2024-03-15 15:16:22 +01:00
Laurent Destailleur
29d6c2b76e Fix for #28821 ->status is int ->labelStatus is array of label. 2024-03-15 15:07:05 +01:00
Laurent Destailleur
3e0920733b Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-15 13:23:37 +01:00
Laurent Destailleur
c9e0bc86dc Fix look and feel 2024-03-15 13:02:58 +01:00
MDW
3ec6116037
Qual: Fix PhanTypeMismatchReturnProbablyReal with typing update 2024-03-15 11:45:18 +01:00
Laurent Destailleur
11c77c410b
Merge pull request #28864 from mdeweerd/fix/PhanUndeclaredTypeReturnType
Fix & enable PhanUndeclaredTypeReturnType
2024-03-15 11:01:11 +01:00
MDW
3384a0b847
Fix & enable PhanUndeclaredTypeReturnType
# Fix & enable PhanUndeclaredTypeReturnType

One typo, and replace 'number' with int or int|float
2024-03-15 10:07:15 +01:00
Laurent Destailleur
470e68829d
Merge branch 'develop' into fix/PhanTypeInvalidUnaryOperandNumeric 2024-03-15 10:03:50 +01:00
Laurent Destailleur
80e2e59373
Merge pull request #28862 from mdeweerd/fix/PhanTypeMismatchPropertyDefault
Fix & enable PhanTypeMismatchPropertyDefault
2024-03-15 09:33:40 +01:00
Frédéric FRANCE
62c0df13ca
Merge branch 'develop' into fixwarningsf 2024-03-15 09:03:21 +01:00
Laurent Destailleur
e238cc204e
Merge pull request #28750 from mdeweerd/fix/PhanPluginSuspiciousParamPosition
Fix: Resolve several PhanPluginSuspiciousParamPosition cases
2024-03-15 08:45:25 +01:00
Frédéric France
b1ce17dd4e fix warning 2024-03-15 08:09:50 +01:00
Frédéric France
cca4bef00b fix warning 2024-03-15 08:06:27 +01:00
MDW
23785393a3
Add csslist to json keys 2024-03-15 03:55:52 +01:00
MDW
cdc3eee530
Fix PhanTypeMismatchPropertyDefault 2024-03-15 03:44:48 +01:00
MDW
e7fde26b0f
Fix PhanTypeMismatchPropertyDefault 2024-03-15 03:44:47 +01:00
MDW
b7b05d4d49
Fix PhanTypeMismatchPropertyDefault 2024-03-15 03:44:46 +01:00
MDW
c27a93401c
Fix PhanTypeMismatchPropertyDefault 2024-03-15 03:44:45 +01:00
Laurent Destailleur
b23e627a05
Merge pull request #28800 from mdeweerd/PhanPluginDuplicateConditionalUnnecessa
Fix & enable PhanPluginDuplicateConditionalUnnecessary "X ? Y : Y"
2024-03-15 00:27:58 +01:00
MDW
0f8b9e73f0
Fix: Enable/fix PhanPluginPrintfIncompatibleArgumentTypeWeak occurences
# Fix: Enable/fix PhanPluginPrintfIncompatibleArgumentTypeWeak occurences

Fix the PhanPluginPrintfIncompatibleArgumentTypeWeak occurences and fix the rule
2024-03-14 23:00:47 +01:00
MDW
3b0d19a160
Fix unneed test 'X ? Y : Y' by assigning '' to note_private 2024-03-14 19:47:10 +01:00
MDW
929da49242
Fix PhanPluginSuspiciousParamPosition by renaming arg (from ext.var) 2024-03-14 19:39:52 +01:00
MDW
5b88c4e466
Fix PhanPluginSuspiciousParamPosition by renaming arg (from ext.var) 2024-03-14 19:39:51 +01:00
MDW
01e4397f3a
Fix PhanPluginSuspiciousParamPosition by renaming arg (local assign) 2024-03-14 19:39:50 +01:00
MDW
69be3bbca6
Fix PhanTypeInvalidUnaryOperandNumeric & remove from exceptions
# Fix PhanTypeInvalidUnaryOperandNumeric & remove from exceptions

Fix by casting result of date() or by adding typing hints.

(This notification indicates a unary '-' or similar is performed
on a value that may not be a number).
2024-03-14 19:39:49 +01:00
MDW
a308f7c178
Fix PhanPluginSuspiciousParamPosition by renaming arg (local assign) 2024-03-14 19:39:45 +01:00
MDW
dabd4e9f80
Fix PhanPluginSuspiciousParamPosition by renaming arg (local assign) 2024-03-14 19:39:44 +01:00