2
0
forked from Wavyzz/dolibarr
Commit Graph

8555 Commits

Author SHA1 Message Date
Laurent Destailleur
15f1699de7 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-25 20:11:48 +01:00
Laurent Destailleur
92312ce4c2 Allow UFS syntax into load_previous_next_ref() 2024-03-25 20:11:24 +01:00
jyhere
ec5e20d633 FIX: missing executeHooks printFieldListFrom in product list page 2024-03-25 15:39:02 +01:00
MDW
df9794393a Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate 2024-03-23 02:06:54 +01:00
MDW
8c240a3337 Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate 2024-03-23 02:06:53 +01:00
Laurent Destailleur
7b0177a84d Move to getDolGlobalString 2024-03-22 00:37:56 +01:00
Laurent Destailleur
922f30eceb Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-03-21 15:38:11 +01:00
MDW
25bd4930a2 Fix $mybool |=... which is binary op, not boolean op
# Fix $mybool |=... which is binary op, not boolean op

This fixes PhanTypeInvalidLeftOperandOfBitwiseOp.
Replace $var |= ... with $var = ... || $var .
Add cast before ... when needed (@include does not always return bool).
|= always evaluates expression, there for || $var, not $var ||
2024-03-21 13:45:44 +01:00
MDW
6ebe4f1b22 Fix $mybool |=... which is binary op, not boolean op
# Fix $mybool |=... which is binary op, not boolean op

This fixes PhanTypeInvalidLeftOperandOfBitwiseOp.
Replace $var |= ... with $var = ... || $var .
Add cast before ... when needed (@include does not always return bool).
|= always evaluates expression, there for || $var, not $var ||
2024-03-21 13:45:42 +01:00
MDW
4e22e33638 Fix $mybool |=... which is binary op, not boolean op
# Fix $mybool |=... which is binary op, not boolean op

This fixes PhanTypeInvalidLeftOperandOfBitwiseOp.
Replace $var |= ... with $var = ... || $var .
Add cast before ... when needed (@include does not always return bool).
|= always evaluates expression, there for || $var, not $var ||
2024-03-21 13:45:41 +01:00
Laurent Destailleur
60c626dbe4 Merge branch 'develop' into fix/PhanTypePossiblyInvalidDimOffset 2024-03-21 12:53:59 +01:00
MDW
aeefca7e7e Fix $arrayfields typing lost by dol_sort_array() by forcing the type 2024-03-20 23:29:48 +01:00
MDW
d818e86c09 Fix PhanTypePossiblyInvalidDimOffset by correcting invalid indexes 2024-03-20 22:32:09 +01:00
MDW
90e1674e55 Cast to string rather than quote var 2024-03-20 21:58:40 +01:00
MDW
f2e7dfad40 Fix arg type to trim() with cast 2024-03-20 04:09:45 +01:00
MDW
26287a363e Fix arg type to str_replace() with cast 2024-03-20 04:09:44 +01:00
MDW
fda0d5b5da Fix arg type to trim() with cast 2024-03-20 04:09:42 +01:00
MDW
66129312b4 Fix arg type to trim() with cast 2024-03-20 04:09:41 +01:00
MDW
90b41360dc Fix arg type to preg_replace() with cast 2024-03-20 04:09:40 +01:00
MDW
c5479f4520 Fix: Update typing for qty as float 2024-03-19 20:37:38 +01:00
Christophe Battarel
e3a5977274 Merge branch 'develop' into rdb4 2024-03-19 15:58:40 +01:00
Christophe Battarel
07597c4515 renaming of columns impact db access 2024-03-19 15:56:44 +01:00
Christophe Battarel
446b574de5 renaming of columns impact db access 2024-03-19 15:49:42 +01:00
MDW
a3e535f99f Fix arg type to explode() by proper function arg typing 2024-03-19 02:59:34 +01:00
MDW
53d062f90b Fix arg type to urlencode by casting to string 2024-03-19 02:59:33 +01:00
MDW
96218ec2ca Fix GETPOSTINT() to GETPOST(..,intcomma) to allow empty type 2024-03-19 02:59:32 +01:00
MDW
31a6a3c9fc Fix PhanTypeSuspiciousStringExpression 2024-03-19 02:43:50 +01:00
MDW
fd9d48faac Fix phpstan CommonObject->fields - notnull is optional field 2024-03-19 00:32:00 +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
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
48d051aba7 Better tooltip on inventory 2024-03-17 01:06:02 +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
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
e994d6650f Fix regression in GETPOST limit 2024-03-16 11:41:00 +01:00
Laurent Destailleur
79aa9fb1f1 Code simpler 2024-03-15 20:29:21 +01:00
Laurent Destailleur
a1b4bcbaa9 Merge pull request #28879 from atm-lena/develop_FIX_loadvirtualstockinproduction
FIX function load_stats_inproduction()
2024-03-15 19:58:49 +01:00
Laurent Destailleur
9302eb645f Update product.class.php 2024-03-15 19:57:23 +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
0ee6fd6bad Merge pull request #28877 from mdeweerd/PhanTypeMismatchDefault
Fix & enable PhanTypeMismatchDefault
2024-03-15 15:44:30 +01:00
x
8ca7789780 FIX function load_stats_inproduction() 2024-03-15 15:36:05 +01:00
Laurent Destailleur
1a722fa436 Merge branch 'develop' into fix/PhanTypeMismatchPropertyProbablyReal 2024-03-15 15:07:35 +01:00
MDW
5c9a063160 Fix PhanTypeMismatchDefault by updating default to null 2024-03-15 14:53:04 +01:00
Laurent Destailleur
8f0c14b782 Merge pull request #28845 from lamrani002/FixcastPriceAutogen
FIX variable by casting it with int (PHPStan warnings)
2024-03-15 14:20:11 +01:00
Lamrani Abdel
b2804f0982 add brackets in cast variable 2024-03-15 12:58:03 +01:00
Laurent Destailleur
3ba2ae1af5 Merge pull request #28867 from FHenry/dev_28554
NEW: Label on Price
2024-03-15 10:18:16 +01:00
MDW
3e49424f2f Fix finished can be null && defautl fk is 0 2024-03-15 10:12:44 +01:00
MDW
18c4bfd808 Fix Initialise ->error as '' 2024-03-15 10:12:01 +01:00
Laurent Destailleur
80e2e59373 Merge pull request #28862 from mdeweerd/fix/PhanTypeMismatchPropertyDefault
Fix & enable PhanTypeMismatchPropertyDefault
2024-03-15 09:33:40 +01:00
Laurent Destailleur
30037a5cba Fix: Test removalof one phan exception 2024-03-15 09:30:21 +01:00
Florian HENRY
5cdf7c73b1 NEW: Label on Price fix:#28544 2024-03-15 09:22:46 +01:00