You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+9-44Lines changed: 9 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ parameters:
131
131
path:src/Components/Expression.php
132
132
133
133
-
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\\.$#"
135
135
count:1
136
136
path:src/Components/Expression.php
137
137
@@ -341,7 +341,7 @@ parameters:
341
341
path:src/Components/OptionsArray.php
342
342
343
343
-
344
-
message:"#^Parameter \\#2 \\$str2 of function strcasecmp expects string, mixed given\\.$#"
344
+
message:"#^Parameter \\#2 \\$string2 of function strcasecmp expects string, mixed given\\.$#"
345
345
count:2
346
346
path:src/Components/OptionsArray.php
347
347
@@ -436,7 +436,7 @@ parameters:
436
436
path:src/Components/Reference.php
437
437
438
438
-
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\\.$#"
440
440
count:1
441
441
path:src/Components/Reference.php
442
442
@@ -741,7 +741,7 @@ parameters:
741
741
path:src/Statements/ReplaceStatement.php
742
742
743
743
-
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\\.$#"
745
745
count:1
746
746
path:src/Statements/ReplaceStatement.php
747
747
@@ -806,7 +806,7 @@ parameters:
806
806
path:src/Tools/ContextGenerator.php
807
807
808
808
-
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\\.$#"
810
810
count:1
811
811
path:src/Tools/ContextGenerator.php
812
812
@@ -816,12 +816,12 @@ parameters:
816
816
path:src/Tools/TestGenerator.php
817
817
818
818
-
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\\.$#"
820
820
count:1
821
821
path:src/Tools/TestGenerator.php
822
822
823
823
-
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\\.$#"
825
825
count:1
826
826
path:src/Tools/TestGenerator.php
827
827
@@ -830,16 +830,6 @@ parameters:
830
830
count:1
831
831
path:src/Tools/TestGenerator.php
832
832
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
-
843
833
-
844
834
message:"#^Cannot access offset 'a' on mixed\\.$#"
845
835
count:3
@@ -911,7 +901,7 @@ parameters:
911
901
path:src/Utils/Formatter.php
912
902
913
903
-
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\\.$#"
915
905
count:1
916
906
path:src/Utils/Formatter.php
917
907
@@ -996,7 +986,7 @@ parameters:
996
986
path:src/Utils/Tokens.php
997
987
998
988
-
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\\.$#"
1000
990
count:1
1001
991
path:src/Utils/Tokens.php
1002
992
@@ -1090,21 +1080,6 @@ parameters:
1090
1080
count:2
1091
1081
path:tests/Components/ExpressionTest.php
1092
1082
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
-
1108
1083
-
1109
1084
message:"#^Cannot cast mixed to string\\.$#"
1110
1085
count:1
@@ -1145,16 +1120,6 @@ parameters:
1145
1120
count:1
1146
1121
path:tests/Parser/WithStatementTest.php
1147
1122
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\\.$#"
0 commit comments