Skip to content

Commit de12a67

Browse files
authored
Merge pull request Dolibarr#33286 from Dolibarr/phpstan-baseline
PHPStan > Update baseline
2 parents cdd0d83 + 70e37e3 commit de12a67

File tree

1 file changed

+2
-104
lines changed

1 file changed

+2
-104
lines changed

dev/build/phpstan/phpstan-baseline.neon

Lines changed: 2 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ parameters:
5454
count: 1
5555
path: ../../../htdocs/accountancy/admin/categories_list.php
5656

57-
-
58-
message: '#^Parameter \#12 \$tabcomplete of function complete_dictionary_with_modules expects array\<string, array\<string, array\<string, string\>\>\>, array\<int, array\> given\.$#'
59-
identifier: argument.type
60-
count: 1
61-
path: ../../../htdocs/accountancy/admin/categories_list.php
62-
6357
-
6458
message: '#^Right side of && is always true\.$#'
6559
identifier: booleanAnd.rightAlwaysTrue
@@ -102,12 +96,6 @@ parameters:
10296
count: 1
10397
path: ../../../htdocs/accountancy/admin/journals_list.php
10498

105-
-
106-
message: '#^Parameter \#12 \$tabcomplete of function complete_dictionary_with_modules expects array\<string, array\<string, array\<string, string\>\>\>, array\<int, array\> given\.$#'
107-
identifier: argument.type
108-
count: 1
109-
path: ../../../htdocs/accountancy/admin/journals_list.php
110-
11199
-
112100
message: '#^Ternary operator condition is always true\.$#'
113101
identifier: ternary.alwaysTrue
@@ -144,12 +132,6 @@ parameters:
144132
count: 1
145133
path: ../../../htdocs/accountancy/admin/report_list.php
146134

147-
-
148-
message: '#^Parameter \#12 \$tabcomplete of function complete_dictionary_with_modules expects array\<string, array\<string, array\<string, string\>\>\>, array\<int, array\> given\.$#'
149-
identifier: argument.type
150-
count: 1
151-
path: ../../../htdocs/accountancy/admin/report_list.php
152-
153135
-
154136
message: '#^Ternary operator condition is always true\.$#'
155137
identifier: ternary.alwaysTrue
@@ -1164,12 +1146,6 @@ parameters:
11641146
count: 1
11651147
path: ../../../htdocs/admin/dict.php
11661148

1167-
-
1168-
message: '#^Parameter \#12 \$tabcomplete of function complete_dictionary_with_modules expects array\<string, array\<string, array\<string, string\>\>\>, array\<string, array\<string, array\<string, string\>\|string\>\> given\.$#'
1169-
identifier: argument.type
1170-
count: 1
1171-
path: ../../../htdocs/admin/dict.php
1172-
11731149
-
11741150
message: '#^Variable \$param in empty\(\) always exists and is not falsy\.$#'
11751151
identifier: empty.variable
@@ -19896,12 +19872,6 @@ parameters:
1989619872
count: 1
1989719873
path: ../../../htdocs/master.inc.php
1989819874

19899-
-
19900-
message: '#^Call to function is_array\(\) with array\<array\{modulenamewithcase\: mixed, moduledescriptorrelpath\: string, moduledescriptorfullpath\: mixed, moduledescriptorrootpath\: mixed, moduletype\?\: ''external''\|''internal''\}\> will always evaluate to true\.$#'
19901-
identifier: function.alreadyNarrowedType
19902-
count: 1
19903-
path: ../../../htdocs/modulebuilder/index.php
19904-
1990519875
-
1990619876
message: '#^Call to function is_array\(\) with non\-empty\-array\<mixed\> will always evaluate to true\.$#'
1990719877
identifier: function.alreadyNarrowedType
@@ -19914,12 +19884,6 @@ parameters:
1991419884
count: 2
1991519885
path: ../../../htdocs/modulebuilder/index.php
1991619886

19917-
-
19918-
message: '#^Parameter \#2 \$arrayreplacement of function dolReplaceInFile expects array\<string, string\>, array\<int\|string, array\<mixed\>\|string\> given\.$#'
19919-
identifier: argument.type
19920-
count: 1
19921-
path: ../../../htdocs/modulebuilder/index.php
19922-
1992319887
-
1992419888
message: '#^Right side of && is always true\.$#'
1992519889
identifier: booleanAnd.rightAlwaysTrue
@@ -26631,7 +26595,7 @@ parameters:
2663126595
-
2663226596
message: '#^Variable \$prodcustprice might not be defined\.$#'
2663326597
identifier: variable.undefined
26634-
count: 36
26598+
count: 3
2663526599
path: ../../../htdocs/societe/price.php
2663626600

2663726601
-
@@ -28464,12 +28428,6 @@ parameters:
2846428428
count: 2
2846528429
path: ../../../htdocs/website/class/website.class.php
2846628430

28467-
-
28468-
message: '#^Parameter \#2 \$arrayreplacement of function dolReplaceInFile expects array\<string, string\>, array\<string, int\|string\> given\.$#'
28469-
identifier: argument.type
28470-
count: 3
28471-
path: ../../../htdocs/website/class/website.class.php
28472-
2847328431
-
2847428432
message: '#^Property Website\:\:\$description \(string\) in isset\(\) is not nullable\.$#'
2847528433
identifier: isset.property
@@ -28548,12 +28506,6 @@ parameters:
2854828506
count: 1
2854928507
path: ../../../htdocs/website/index.php
2855028508

28551-
-
28552-
message: '#^If condition is always true\.$#'
28553-
identifier: if.alwaysTrue
28554-
count: 1
28555-
path: ../../../htdocs/website/index.php
28556-
2855728509
-
2855828510
message: '#^Left side of && is always true\.$#'
2855928511
identifier: booleanAnd.leftAlwaysTrue
@@ -28569,7 +28521,7 @@ parameters:
2856928521
-
2857028522
message: '#^Negated boolean expression is always false\.$#'
2857128523
identifier: booleanNot.alwaysFalse
28572-
count: 2
28524+
count: 1
2857328525
path: ../../../htdocs/website/index.php
2857428526

2857528527
-
@@ -28590,30 +28542,12 @@ parameters:
2859028542
count: 1
2859128543
path: ../../../htdocs/website/index.php
2859228544

28593-
-
28594-
message: '#^Variable \$cate_arbo might not be defined\.$#'
28595-
identifier: variable.undefined
28596-
count: 1
28597-
path: ../../../htdocs/website/index.php
28598-
28599-
-
28600-
message: '#^Variable \$containertype might not be defined\.$#'
28601-
identifier: variable.undefined
28602-
count: 2
28603-
path: ../../../htdocs/website/index.php
28604-
2860528545
-
2860628546
message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#'
2860728547
identifier: empty.variable
2860828548
count: 1
2860928549
path: ../../../htdocs/website/index.php
2861028550

28611-
-
28612-
message: '#^Variable \$disabled might not be defined\.$#'
28613-
identifier: variable.undefined
28614-
count: 1
28615-
path: ../../../htdocs/website/index.php
28616-
2861728551
-
2861828552
message: '#^Variable \$dolibarr_main_url_root might not be defined\.$#'
2861928553
identifier: variable.undefined
@@ -28626,36 +28560,6 @@ parameters:
2862628560
count: 1
2862728561
path: ../../../htdocs/website/index.php
2862828562

28629-
-
28630-
message: '#^Variable \$langcode might not be defined\.$#'
28631-
identifier: variable.undefined
28632-
count: 2
28633-
path: ../../../htdocs/website/index.php
28634-
28635-
-
28636-
message: '#^Variable \$otherfilters might not be defined\.$#'
28637-
identifier: variable.undefined
28638-
count: 2
28639-
path: ../../../htdocs/website/index.php
28640-
28641-
-
28642-
message: '#^Variable \$tmpobject might not be defined\.$#'
28643-
identifier: variable.undefined
28644-
count: 1
28645-
path: ../../../htdocs/website/index.php
28646-
28647-
-
28648-
message: '#^Variable \$urltograbdirrootwithoutslash might not be defined\.$#'
28649-
identifier: variable.undefined
28650-
count: 2
28651-
path: ../../../htdocs/website/index.php
28652-
28653-
-
28654-
message: '#^Variable \$urltograbdirwithoutslash might not be defined\.$#'
28655-
identifier: variable.undefined
28656-
count: 4
28657-
path: ../../../htdocs/website/index.php
28658-
2865928563
-
2866028564
message: '#^If condition is always false\.$#'
2866128565
identifier: if.alwaysFalse
@@ -28704,12 +28608,6 @@ parameters:
2870428608
count: 1
2870528609
path: ../../../htdocs/website/websiteaccount_card.php
2870628610

28707-
-
28708-
message: '#^Method Workstations\:\:index\(\) return type has no value type specified in iterable type array\.$#'
28709-
identifier: missingType.iterableValue
28710-
count: 1
28711-
path: ../../../htdocs/workstation/class/api_workstations.class.php
28712-
2871328611
-
2871428612
message: '#^Call to function method_exists\(\) with \$this\(Workstation\) and ''getLibStatut'' will always evaluate to true\.$#'
2871528613
identifier: function.alreadyNarrowedType

0 commit comments

Comments
 (0)