Skip to content

Commit 467e5f2

Browse files
committed
Update phpstan baseline
Signed-off-by: William Desportes <[email protected]>
1 parent 5e59a93 commit 467e5f2

File tree

1 file changed

+9
-44
lines changed

1 file changed

+9
-44
lines changed

phpstan-baseline.neon

Lines changed: 9 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ parameters:
131131
path: src/Components/Expression.php
132132

133133
-
134-
message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\<string\\>\\|string given\\.$#"
134+
message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, array\\<string\\>\\|string given\\.$#"
135135
count: 1
136136
path: src/Components/Expression.php
137137

@@ -341,7 +341,7 @@ parameters:
341341
path: src/Components/OptionsArray.php
342342

343343
-
344-
message: "#^Parameter \\#2 \\$str2 of function strcasecmp expects string, mixed given\\.$#"
344+
message: "#^Parameter \\#2 \\$string2 of function strcasecmp expects string, mixed given\\.$#"
345345
count: 2
346346
path: src/Components/OptionsArray.php
347347

@@ -436,7 +436,7 @@ parameters:
436436
path: src/Components/Reference.php
437437

438438
-
439-
message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\<string\\>\\|string given\\.$#"
439+
message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, array\\<string\\>\\|string given\\.$#"
440440
count: 1
441441
path: src/Components/Reference.php
442442

@@ -741,7 +741,7 @@ parameters:
741741
path: src/Statements/ReplaceStatement.php
742742

743743
-
744-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d given\\.$#"
744+
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d given\\.$#"
745745
count: 1
746746
path: src/Statements/ReplaceStatement.php
747747

@@ -806,7 +806,7 @@ parameters:
806806
path: src/Tools/ContextGenerator.php
807807

808808
-
809-
message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#"
809+
message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#"
810810
count: 1
811811
path: src/Tools/ContextGenerator.php
812812

@@ -816,12 +816,12 @@ parameters:
816816
path: src/Tools/TestGenerator.php
817817

818818
-
819-
message: "#^Parameter \\#1 \\$filename of function is_dir expects string, string\\|null given\\.$#"
819+
message: "#^Parameter \\#1 \\$directory of function mkdir expects string, string\\|null given\\.$#"
820820
count: 1
821821
path: src/Tools/TestGenerator.php
822822

823823
-
824-
message: "#^Parameter \\#1 \\$pathname of function mkdir expects string, string\\|null given\\.$#"
824+
message: "#^Parameter \\#1 \\$filename of function is_dir expects string, string\\|null given\\.$#"
825825
count: 1
826826
path: src/Tools/TestGenerator.php
827827

@@ -830,16 +830,6 @@ parameters:
830830
count: 1
831831
path: src/Tools/TestGenerator.php
832832

833-
-
834-
message: "#^Parameter \\#1 \\$delimiter of method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\BufferedQuery\\:\\:setDelimiter\\(\\) expects string, bool\\|string given\\.$#"
835-
count: 1
836-
path: src/Utils/BufferedQuery.php
837-
838-
-
839-
message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Utils\\\\BufferedQuery\\:\\:\\$options \\(array\\{delimiter\\?\\: non\\-empty\\-string, parse_delimiter\\?\\: bool, add_delimiter\\?\\: bool\\}\\) does not accept non\\-empty\\-array\\<literal\\-string&non\\-empty\\-string, bool\\|non\\-empty\\-string\\>\\.$#"
840-
count: 1
841-
path: src/Utils/BufferedQuery.php
842-
843833
-
844834
message: "#^Cannot access offset 'a' on mixed\\.$#"
845835
count: 3
@@ -911,7 +901,7 @@ parameters:
911901
path: src/Utils/Formatter.php
912902

913903
-
914-
message: "#^Parameter \\#1 \\$input of function str_repeat expects string, array\\<int, array\\<string, int\\|string\\>\\>\\|bool\\|string given\\.$#"
904+
message: "#^Parameter \\#1 \\$string of function str_repeat expects string, array\\<int, array\\<string, int\\|string\\>\\>\\|bool\\|string given\\.$#"
915905
count: 1
916906
path: src/Utils/Formatter.php
917907

@@ -996,7 +986,7 @@ parameters:
996986
path: src/Utils/Tokens.php
997987

998988
-
999-
message: "#^Parameter \\#1 \\$str1 of function strcasecmp expects string, int\\|string given\\.$#"
989+
message: "#^Parameter \\#1 \\$string1 of function strcasecmp expects string, int\\|string given\\.$#"
1000990
count: 1
1001991
path: src/Utils/Tokens.php
1002992

@@ -1090,21 +1080,6 @@ parameters:
10901080
count: 2
10911081
path: tests/Components/ExpressionTest.php
10921082

1093-
-
1094-
message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNull\\(\\) with PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj will always evaluate to false\\.$#"
1095-
count: 1
1096-
path: tests/Components/JoinKeywordTest.php
1097-
1098-
-
1099-
message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNull\\(\\) with array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\Condition\\> will always evaluate to false\\.$#"
1100-
count: 2
1101-
path: tests/Components/JoinKeywordTest.php
1102-
1103-
-
1104-
message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNull\\(\\) with string will always evaluate to false\\.$#"
1105-
count: 2
1106-
path: tests/Components/KeyTest.php
1107-
11081083
-
11091084
message: "#^Cannot cast mixed to string\\.$#"
11101085
count: 1
@@ -1145,16 +1120,6 @@ parameters:
11451120
count: 1
11461121
path: tests/Parser/WithStatementTest.php
11471122

1148-
-
1149-
message: "#^Cannot access offset int\\<0, max\\> on non\\-empty\\-array\\<int, string\\>\\|false\\.$#"
1150-
count: 1
1151-
path: tests/Utils/BufferedQueryTest.php
1152-
1153-
-
1154-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\<int, string\\>\\|false given\\.$#"
1155-
count: 1
1156-
path: tests/Utils/BufferedQueryTest.php
1157-
11581123
-
11591124
message: "#^Parameter \\#1 \\$statement of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Misc\\:\\:getAliases\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Statements\\\\SelectStatement, PhpMyAdmin\\\\SqlParser\\\\Statement\\|null given\\.$#"
11601125
count: 1

0 commit comments

Comments
 (0)