Skip to content

Commit e9fa3d2

Browse files
committed
Update phpstan baseline with PHP 7.4
Signed-off-by: William Desportes <[email protected]>
1 parent c6e0123 commit e9fa3d2

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

phpstan-baseline.neon

Lines changed: 19 additions & 9 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 \\$array of function implode expects array\\|null, array\\<string\\>\\|string given\\.$#"
134+
message: "#^Parameter \\#2 \\$pieces of function implode expects array, 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 \\$string2 of function strcasecmp expects string, mixed given\\.$#"
344+
message: "#^Parameter \\#2 \\$str2 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 \\$array of function implode expects array\\|null, array\\<string\\>\\|string given\\.$#"
439+
message: "#^Parameter \\#2 \\$pieces of function implode expects array, 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 \\$value of function count expects array\\|Countable, PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d given\\.$#"
744+
message: "#^Parameter \\#1 \\$var 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 \\.\\.\\.\\$arrays of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#"
809+
message: "#^Parameter \\#2 \\.\\.\\.\\$args 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 \\$directory of function mkdir expects string, string\\|null given\\.$#"
819+
message: "#^Parameter \\#1 \\$filename of function is_dir expects string, string\\|null given\\.$#"
820820
count: 1
821821
path: src/Tools/TestGenerator.php
822822

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

@@ -901,7 +901,7 @@ parameters:
901901
path: src/Utils/Formatter.php
902902

903903
-
904-
message: "#^Parameter \\#1 \\$string of function str_repeat expects string, array\\<int, array\\<string, int\\|string\\>\\>\\|bool\\|string given\\.$#"
904+
message: "#^Parameter \\#1 \\$input of function str_repeat expects string, array\\<int, array\\<string, int\\|string\\>\\>\\|bool\\|string given\\.$#"
905905
count: 1
906906
path: src/Utils/Formatter.php
907907

@@ -986,7 +986,7 @@ parameters:
986986
path: src/Utils/Tokens.php
987987

988988
-
989-
message: "#^Parameter \\#1 \\$string1 of function strcasecmp expects string, int\\|string given\\.$#"
989+
message: "#^Parameter \\#1 \\$str1 of function strcasecmp expects string, int\\|string given\\.$#"
990990
count: 1
991991
path: src/Utils/Tokens.php
992992

@@ -1120,6 +1120,16 @@ parameters:
11201120
count: 1
11211121
path: tests/Parser/WithStatementTest.php
11221122

1123+
-
1124+
message: "#^Cannot access offset int\\<0, max\\> on non\\-empty\\-array\\<int, string\\>\\|false\\.$#"
1125+
count: 1
1126+
path: tests/Utils/BufferedQueryTest.php
1127+
1128+
-
1129+
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\<int, string\\>\\|false given\\.$#"
1130+
count: 1
1131+
path: tests/Utils/BufferedQueryTest.php
1132+
11231133
-
11241134
message: "#^Parameter \\#1 \\$statement of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Misc\\:\\:getAliases\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Statements\\\\SelectStatement, PhpMyAdmin\\\\SqlParser\\\\Statement\\|null given\\.$#"
11251135
count: 1

0 commit comments

Comments
 (0)