Commit Graph

713 Commits

Author SHA1 Message Date
Frédéric FRANCE
d0830b3159 fix phpstan (#29602)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix travis

* fix phpstan

* fix phpstan

* fix phan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

fix phpstan

fix phpstan

fix phpstan

fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix travis

* fix phpstan

* fix phpstan

* fix phpstan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-05-05 00:34:19 +02:00
Laurent Destailleur
9c2f98be94 Fix cti 2024-04-29 12:03:01 +02:00
Laurent Destailleur
9e654e65dd Debug v20 2024-04-29 11:04:19 +02:00
Frédéric FRANCE
26da44e254 fix phpstan (#29431)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* remove params not used

* add WARNING
2024-04-27 12:45:50 +02:00
Frédéric FRANCE
a429e73ee5 add fusion pdf in receipt list (#29464)
* add fusion pdf in receipt list

* add fusion pdf in receipt list

* add fusion pdf in receipt list

* add fusion pdf in receipt list

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-26 12:20:37 +02:00
Benjamin Falière
948e204fae ADD arrayfields as parameter in doActions (#29326)
* ADD arrayfields as parameter in doActions

* FIX typo

* FIX syntax error

---------

Co-authored-by: Benjamin Falière <benjamin.faliere@altairis.fr>
2024-04-11 20:07:13 +02:00
Laurent Destailleur
b5de782c6b Fix use the good HTTP code 2024-04-07 14:59:25 +02:00
Laurent Destailleur
fd9475be03 Use same doc comment eveywhere. 2024-04-07 12:26:27 +02:00
Laurent Destailleur
38fb00489d PHPDoc 2024-04-05 13:44:59 +02:00
Laurent Destailleur
14afdf6b0e Fix regression on GETPOSTINT 2024-04-03 17:50:24 +02:00
Laurent Destailleur
2947287e3f Look and feel v20 2024-04-03 16:22:16 +02:00
Laurent Destailleur
d03a926238 Clean code. Reduce warning for deprecated field to a better blanced
level, as we should start soon the beta.
2024-04-03 00:51:18 +02:00
Laurent Destailleur
7715513ac9 Some API HTTP return code were moved from 401 to 403 to better follow
REST specification.
2024-04-02 14:47:49 +02:00
Laurent Destailleur
990216b13f NEW Api parameters are sanitized by the WAF, same code than GET/POST 2024-04-02 13:07:13 +02:00
MDW
9afe7dba59 Fix phan notices related to fournisseur.facture.class.php
# Fix phan notices related to fournisseur.facture.class.php

This fixes deprecations and phpdoc.
2024-03-29 23:48:40 +01:00
Laurent Destailleur
e73f79ca96 Qual: Remove unnecessary use of $_GET 2024-03-28 20:19:28 +01:00
Laurent Destailleur
54501bccc3 Merge pull request #29066 from mdeweerd/fix/dol_get_fiche_head
Fix arguments to dol_get_fiche_head and dol_get_fiche_end
2024-03-28 14:16:45 +01:00
MDW
975243f1b5 Fix: Ensure DiscountAbsolute->fk_soc deprecation is possible
# Fix: Ensure DiscountAbsolute->fk_soc deprecation is possible

Assign socid whenever fk_soc is assigned so that socid can be accessed
instead of fk_soc.
2024-03-27 18:07:51 +01:00
MDW
b56cbb6c17 Fix arguments to dol_get_fiche_head 2024-03-27 10:23:04 +01:00
MDW
9c953353c2 Extra test to fix PhanTypeInvalidPropertyName 2024-03-24 15:40:33 +01:00
MDW
0a925dd0a9 Extra test to fix PhanTypeInvalidPropertyName 2024-03-24 15:40:32 +01:00
MDW
71818bd4f4 Extra test to fix PhanTypeInvalidPropertyName 2024-03-24 15:40:31 +01:00
MDW
bbc086ce26 Force type to fix PhanNonClassMethodCall 2024-03-24 15:40:29 +01:00
MDW
f357056590 Extra test to fix PhanTypeInvalidPropertyName 2024-03-24 11:10:43 +01:00
MDW
c9ddf52f4f Extra test to fix PhanTypeInvalidPropertyName 2024-03-24 11:10:42 +01:00
MDW
e4a45f6f1e Extra test to fix PhanTypeInvalidPropertyName 2024-03-24 11:10:41 +01:00
MDW
2982465f56 Extra test to fix PhanTypeInvalidPropertyName 2024-03-24 11:03:16 +01:00
Laurent Destailleur
59c87c7cb6 Clean usage of ->origin_object instead of ->origin that was a string. 2024-03-24 06:12:18 +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
a960e74a5c 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:45 +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
cbee85644e Fix arg type to trim() with cast 2024-03-20 04:10:00 +01:00
MDW
73f0786559 Fix arg type to strcmp() with cast 2024-03-20 04:09:58 +01:00
MDW
c5479f4520 Fix: Update typing for qty as float 2024-03-19 20:37:38 +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
Christophe Battarel
f94d282c17 renam fk_commande and fk_commandefourdet 2024-03-19 15:24:08 +01:00
Christophe Battarel
b2baacccb4 update credentials 2024-03-19 14:58:05 +01:00
Laurent Destailleur
24ad3bb76b Merge branch 'develop' of github.com:Dolibarr/dolibarr into develop 2024-03-18 23:23:38 +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
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
MDW
2ebfc1d126 Fix/ignore PhanPluginPrintfVariableFormatString 2024-03-17 18:56:42 +01:00
MDW
45ca82e9f6 Fix GETPOSTINT(trackingurl), is_numeric(GETPOSTINT()), unneeded trim 2024-03-17 15:08:21 +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
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
MDW
c31c883a91 Ensure typing for commandeFournisseur matches 2024-03-15 10:12:47 +01:00
MDW
29d650960c Fix Initialise $numline to fix PhanTypeInvalidUnaryOperandIncOrDec 2024-03-13 17:38:11 +01:00
Laurent Destailleur
1f43cf56d9 Fix regression 2024-03-12 22:11:11 +01:00
MDW
1f25fabc34 Fix: Ensure string type for urlencode() 2024-03-09 16:56:45 +01:00