Commit graph

133486 commits

Author SHA1 Message Date
Laurent Destailleur
11c77c410b
Merge pull request #28864 from mdeweerd/fix/PhanUndeclaredTypeReturnType
Fix & enable PhanUndeclaredTypeReturnType
2024-03-15 11:01:11 +01:00
Laurent Destailleur
8689c83bf5
Merge pull request #28868 from FHenry/dev_27814
NEW: add column for barcode in ticket
2024-03-15 11:00:38 +01:00
MDW
f91d32de86
Qual: Fix typing - module_parts['hooks'] may be empty
# Qual: Fix typing - moduleparts['hooks'] may be empty

PHPstan reported on initialisation mismatch when module_parts['hooks']
is initialised to empty array.  This change makes the fields optional.
2024-03-15 10:46:20 +01:00
Florian HENRY
2d051d2fd5 add BDD contraint on bar code 2024-03-15 10:38:07 +01:00
Florian HENRY
ee02be99e3 add BDD contraint on bar code 2024-03-15 10:36:22 +01:00
Florian HENRY
3b7c31c474 Merge branch 'develop' of https://github.com/Dolibarr/dolibarr into dev_27814 2024-03-15 10:23:39 +01:00
Laurent Destailleur
f5a0255d90
Merge pull request #28820 from mdeweerd/fix/PhanTypeInvalidUnaryOperandNumeric
Fix PhanTypeInvalidUnaryOperandNumeric & remove from exceptions
2024-03-15 10:22:26 +01:00
Florian HENRY
778f7b0fbf NEW: add column for barcode in ticket 2024-03-15 10:21:17 +01:00
Laurent Destailleur
4f766a615d
Merge pull request #28865 from mdeweerd/fix/typing/typo
Fix typo in typing
2024-03-15 10:19:34 +01:00
Laurent Destailleur
60e159f689
Merge pull request #28827 from jyhere/patch-10
UPDATE: add a conf param to disable extrafields code autofill
2024-03-15 10:19:10 +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
651b5a22eb
Fix & enable PhanTypeSuspiciousEcho
# Fix & enable PhanTypeSuspiciousEcho

Fix occurences by improving typing - array key was not found and
supposed null in a print statement.

Example:
  PhanTypeSuspiciousEcho Suspicious argument $menu_array[$i]['prefix'] of type null for an echo/print statement

Enabled detection because all cases are fixed
2024-03-15 10:14:40 +01:00
MDW
ec6786ece3
Detect PhanTypeMismatchPropertyProbablyReal 2024-03-15 10:12:52 +01:00
MDW
a5acb44890
Fix origin_email and track_id can be null 2024-03-15 10:12:51 +01:00
MDW
7025738db8
Fix fields initialisation 2024-03-15 10:12:50 +01:00
MDW
4e05ac84f1
Init code_client and code_fournisseur to '', not null 2024-03-15 10:12:49 +01:00
MDW
e36dccff59
Qual: better typing for getCountry() 2024-03-15 10:12:48 +01:00
MDW
b072966cc8
Fix Initialise id to 0 and ref to '' 2024-03-15 10:12:47 +01:00
MDW
c31c883a91
Ensure typing for commandeFournisseur matches 2024-03-15 10:12:47 +01:00
MDW
6a606bf7c1
Adjust typing for 'origin' & 'origin_object' 2024-03-15 10:12:46 +01:00
MDW
8cc6b31337
Fix empty label is '', not null 2024-03-15 10:12:45 +01:00
MDW
3e49424f2f
Fix finished can be null && defautl fk is 0 2024-03-15 10:12:44 +01:00
MDW
cc5207a531
Fix rate can be null 2024-03-15 10:12:35 +01:00
MDW
575e620300
Fix Assign 0 to fk_project, not null (dolibarr's way) 2024-03-15 10:12:02 +01:00
MDW
59abbda92f
Fix Assign 0 to fk_bank not null (dolibarr's way) 2024-03-15 10:12:01 +01:00
MDW
18c4bfd808
Fix Initialise ->error as '' 2024-03-15 10:12:01 +01:00
MDW
29644f2ae8
Fix Add to errors, not error which is not an array 2024-03-15 10:12:00 +01:00
MDW
07d63e5bf3
Fix Add to errors, not error which is not an array 2024-03-15 10:11:58 +01:00
MDW
db0134183d
Qual: improve hist typing 2024-03-15 10:11:57 +01:00
MDW
6ab1e6e7d9
Qual: Add typing information 2024-03-15 10:11:56 +01:00
MDW
b57b4c8f17
Qual: Improve typing hints, in particular sendtoid 2024-03-15 10:11:55 +01:00
MDW
b28a17ee51
Fix Assign to error as string, not to error as array 2024-03-15 10:11:54 +01:00
MDW
23fecf4524
Fix Add to errors, not error which is not an array 2024-03-15 10:11:53 +01:00
MDW
74ab4b5a54
Fix typo in typing
# Fix typo in typing

Fix typo in typing straing->string.
2024-03-15 10:08:35 +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
777d864151 Clean code 2024-03-15 10:01:05 +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
cee8ef26ef Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-15 09:30:53 +01:00
Laurent Destailleur
30037a5cba Fix: Test removalof one phan exception 2024-03-15 09:30:21 +01:00
Laurent Destailleur
0ef2ab37e3
Merge pull request #28866 from frederic34/fixwarningsf
fix warning
2024-03-15 09:25:02 +01:00
Florian HENRY
09e75b6c90 NEW: Label on Price fix:#28544 2024-03-15 09:24:45 +01:00
Florian HENRY
5cdf7c73b1 NEW: Label on Price fix:#28544 2024-03-15 09:22:46 +01:00
Florian HENRY
2b45843432 Merge branch 'develop' of https://github.com/Dolibarr/dolibarr into dev_28554 2024-03-15 09:14:43 +01:00
jyhere
0872f825ec
FIX: use getDolGlobalInt 2024-03-15 09:10:17 +01:00
Frédéric FRANCE
983e7b693c
Merge branch 'develop' into patch-11 2024-03-15 09:04:30 +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
Laurent Destailleur
1a63080e44
Merge branch 'develop' into fix/PhanTypeMismatchPropertyDefault 2024-03-15 08:41:23 +01:00
Laurent Destailleur
9929b06fbf
Merge pull request #28863 from mdeweerd/fix/testContactUpdate
Fix ContactTest::testContactUpdate
2024-03-15 08:41:10 +01:00