2
0
forked from Wavyzz/dolibarr
Commit Graph

13558 Commits

Author SHA1 Message Date
MDW
dce30779e1 Improve phpdoc typing 2024-03-30 18:03:11 +01:00
MDW
7c465ede53 Fix select_dolusers selected user test when argument is User
# Fix select_dolusers selected user test when argument is User

$selected is always an array but was tested as if it was the object itself
2024-03-30 18:03:09 +01:00
Laurent Destailleur
362f5f530c Merge pull request #29113 from frederic34/phpstan_user
fix phpstan
2024-03-29 13:47:37 +01:00
Laurent Destailleur
ffe989a567 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-29 12:29:56 +01:00
Laurent Destailleur
726637937c Fix #29118 2024-03-29 12:28:55 +01:00
Laurent Destailleur
233629ed3a Merge branch 'develop' into phpstan_user 2024-03-29 12:20:23 +01:00
Laurent Destailleur
5a6791aa5a Clean code 2024-03-29 11:43:26 +01:00
Laurent Destailleur
b58e439a17 Clean use of $_POST 2024-03-28 21:29:02 +01:00
Frédéric France
7a7b1953ed fix phpstan 2024-03-28 20:34:33 +01:00
Frédéric France
a3df8248a7 Merge remote-tracking branch 'upstream/develop' into phpstan_user 2024-03-28 20:26:57 +01:00
Frédéric France
5b1af95864 fix phpstan 2024-03-28 20:16:32 +01:00
Frédéric France
9a5c7525ab fix phpstan 2024-03-28 18:54:46 +01:00
Laurent Destailleur
3e8c3edd6d Clean code from _GET 2024-03-28 17:10:22 +01:00
Laurent Destailleur
787b1a1c83 Merge branch 'develop' into fix/filebyfile 2024-03-28 14:23:54 +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
Laurent Destailleur
1d125bf9fa Merge pull request #29065 from mdeweerd/fix/dol_print_error
Fix arguments to dol_print_error
2024-03-28 13:35:44 +01:00
Laurent Destailleur
7535a884ac Merge pull request #29069 from mdeweerd/fix/price
Fix arguments to price()
2024-03-28 13:07:25 +01:00
Laurent Destailleur
415e99606d Merge pull request #29091 from mdeweerd/fix/facturefournisseur/card
Fix card FactureFournisseur
2024-03-28 12:55:24 +01:00
Laurent Destailleur
5507f033c8 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-28 12:54:27 +01:00
Laurent Destailleur
c112a965cc Fix phan warnings 2024-03-28 12:54:08 +01:00
Laurent Destailleur
0544670ac4 Merge pull request #28160 from mdeweerd/core/deprecationclass
NEW: DolDeprecationHandler for deprecations
2024-03-28 12:42:53 +01:00
MDW
87bdc72920 Cast line->qty values to fix phan notices 2024-03-28 01:52:59 +01:00
MDW
e11028d526 Improve phpdoc 2024-03-28 00:34:26 +01:00
MDW
b84281d285 Improve phpdoc typing 2024-03-27 19:26:27 +01:00
MDW
274a6d0528 Improve phpdoc typing 2024-03-27 19:26:26 +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
Laurent Destailleur
81f1950c00 Error to save cache must be level ERR 2024-03-27 13:33:22 +01:00
MDW
ddf5156071 Fix arguments to dol_print_error 2024-03-27 10:23:41 +01:00
MDW
a99853efd3 Fix arguments to dol_print_error 2024-03-27 10:23:40 +01:00
MDW
3ea9ca350c Fix arguments to dol_get_fiche_head 2024-03-27 10:22:52 +01:00
MDW
37958e8b1f Fix arguments to price() 2024-03-27 10:21:25 +01:00
MDW
25faef6da8 Improve typing for arg $showempty 2024-03-27 10:18:43 +01:00
MDW
767eeb605d Style (phpcbf not agreeing with php-cs-fixer) 2024-03-27 10:18:32 +01:00
MDW
d17c010e59 Improve PHPdoc typings 2024-03-27 10:18:32 +01:00
MDW
41644c03f1 Accept null for formquestion in formconfirm() 2024-03-27 10:18:23 +01:00
MDW
3b80d100ff Cast return from DolEditor::Create(1) for static analysis 2024-03-27 10:18:22 +01:00
MDW
ba702cf25f PHPdoc for $css, $theme, $modules, $module_parts, $cache 2024-03-27 10:18:19 +01:00
Laurent Destailleur
67a51988ce Fix log 2024-03-26 18:48:26 +01:00
Laurent Destailleur
6b72371163 Fix warning 2024-03-26 18:46:28 +01:00
Laurent Destailleur
37c311e05a Fix warning 2024-03-26 18:31:59 +01:00
Laurent Destailleur
92312ce4c2 Allow UFS syntax into load_previous_next_ref() 2024-03-25 20:11:24 +01:00
MDW
639ac1b740 Fix PHPdoc & event paramter for select_account 2024-03-25 02:19:35 +01:00
MDW
925e1db907 New: Apply DolDeprecatedHandler to Conf
# New: Apply DolDeprecatedHandler to Conf

Improve detection of deprecated values, avoid duplicating assignments,
alias deprecated property names to new properties.
2024-03-24 17:39:05 +01:00
MDW
8f3b245dbd New: Use DolDeprecationHandler in CommonObject
# New: Use DolDeprecationHandler in CommonObject

Use deprecation handler for more efficient deprecations
2024-03-24 17:39:04 +01:00
MDW
be23366e51 Fix: Check that certain properties exists before trying isset.
# Fix: Check that certain properties exists before trying isset.

Avoids triggering an undefined property notice from the DolDeprecationHandler
2024-03-24 17:39:03 +01:00
MDW
a6d4a99cca NEW: DolDeprecationHandler for deprecations
# NEW: DolDeprecationHandler for deprecations

This reusable class avoids needed to implement double assignments while enabling
the detection of the use of deprecated variables and methods.

There is no efficiency overhead when the proper variables and methods are
used.
2024-03-24 17:39:02 +01:00
Laurent Destailleur
841427601f Merge pull request #29037 from mdeweerd/fix/PhanTypeInvalidPropertyName
Fix & Enable PhanTypeInvalidPropertyName
2024-03-24 14:56:42 +01:00
Laurent Destailleur
2fc1e4ba60 Merge pull request #29044 from mdeweerd/fix/phan20240324
Fix Phan notices
2024-03-24 14:56:17 +01:00
Laurent Destailleur
35e353cf0a Clean global variable non required 2024-03-24 14:54:36 +01:00
MDW
8b960280d9 PHPdoc Allow empty array for + PHPdoc improvements 2024-03-24 14:09:32 +01:00