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
+26-56Lines changed: 26 additions & 56 deletions
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,11 @@ parameters:
85
85
count:3
86
86
path:src/Lexer.php
87
87
88
+
-
89
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Token\\:\\:\\$keyword \\(string\\|null\\) does not accept bool\\|float\\|int\\|string\\.$#"
90
+
count:1
91
+
path:src/Lexer.php
92
+
88
93
-
89
94
message:"#^Strict comparison using \\=\\=\\= between non\\-empty\\-array\\<non\\-empty\\-string, int\\> and array\\{\\} will always evaluate to false\\.$#"
90
95
count:1
@@ -156,7 +161,7 @@ parameters:
156
161
path:src/Parsers/ArrayObjs.php
157
162
158
163
-
159
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\:\\:\\$alias \\(string\\|null\\) does not accept mixed\\.$#"
164
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\:\\:\\$alias \\(string\\|null\\) does not accept bool\\|float\\|int\\|string\\.$#"
160
165
count:1
161
166
path:src/Parsers/CaseExpressions.php
162
167
@@ -171,7 +176,7 @@ parameters:
171
176
path:src/Parsers/CaseExpressions.php
172
177
173
178
-
174
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition\\:\\:\\$name \\(string\\|null\\) does not accept mixed\\.$#"
179
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition\\:\\:\\$name \\(string\\|null\\) does not accept bool\\|float\\|int\\|string\\.$#"
175
180
count:2
176
181
path:src/Parsers/CreateDefinitions.php
177
182
@@ -185,11 +190,6 @@ parameters:
185
190
count:1
186
191
path:src/Parsers/DataTypes.php
187
192
188
-
-
189
-
message:"#^Cannot cast mixed to string\\.$#"
190
-
count:1
191
-
path:src/Parsers/DataTypes.php
192
-
193
193
-
194
194
message:"#^Method PhpMyAdmin\\\\SqlParser\\\\Parsers\\\\ExpressionArray\\:\\:parse\\(\\) should return array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\> but returns array\\<int\\<0, max\\>, PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\>\\.$#"
195
195
count:1
@@ -216,15 +216,10 @@ parameters:
216
216
path:src/Parsers/Expressions.php
217
217
218
218
-
219
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:\\$alias \\(string\\|null\\) does not accept mixed\\.$#"
219
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:\\$alias \\(string\\|null\\) does not accept bool\\|float\\|int\\|string\\.$#"
220
220
count:3
221
221
path:src/Parsers/Expressions.php
222
222
223
-
-
224
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:\\$subquery \\(string\\|null\\) does not accept mixed\\.$#"
225
-
count:1
226
-
path:src/Parsers/Expressions.php
227
-
228
223
-
229
224
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\FunctionCall\\:\\:\\$parameters \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\) does not accept array\\<PhpMyAdmin\\\\SqlParser\\\\Component\\>\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#"
230
225
count:1
@@ -251,12 +246,12 @@ parameters:
251
246
path:src/Parsers/IntoKeywords.php
252
247
253
248
-
254
-
message:"#^Parameter \\#3 \\$keyword of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\IntoKeyword\\:\\:parseFileOptions\\(\\) expects string, mixed given\\.$#"
249
+
message:"#^Parameter \\#3 \\$keyword of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\IntoKeyword\\:\\:parseFileOptions\\(\\) expects string, string\\|null given\\.$#"
255
250
count:2
256
251
path:src/Parsers/IntoKeywords.php
257
252
258
253
-
259
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\IntoKeyword\\:\\:\\$dest \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|string\\|null\\) does not accept mixed\\.$#"
254
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\IntoKeyword\\:\\:\\$dest \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|string\\|null\\) does not accept bool\\|float\\|int\\|string\\.$#"
260
255
count:1
261
256
path:src/Parsers/IntoKeywords.php
262
257
@@ -266,27 +261,27 @@ parameters:
266
261
path:src/Parsers/JoinKeywords.php
267
262
268
263
-
269
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$columns \\(array\\<array\\{name\\?\\: string, length\\?\\: int, order\\?\\: string\\}\\>\\) does not accept non\\-empty\\-array\\<array\\<'length'\\|'name'\\|'order', mixed\\>\\>\\.$#"
264
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$columns \\(array\\<array\\{name\\?\\: string, length\\?\\: int, order\\?\\: string\\}\\>\\) does not accept non\\-empty\\-array\\<array\\<'length'\\|'name'\\|'order', bool\\|float\\|int\\|string\\>\\>\\.$#"
270
265
count:1
271
266
path:src/Parsers/Keys.php
272
267
273
268
-
274
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$name \\(string\\|null\\) does not accept mixed\\.$#"
269
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$name \\(string\\|null\\) does not accept bool\\|float\\|int\\|string\\.$#"
275
270
count:1
276
271
path:src/Parsers/Keys.php
277
272
278
273
-
279
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$type \\(string\\|null\\) does not accept mixed\\.$#"
274
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$type \\(string\\|null\\) does not accept bool\\|float\\|int\\|string\\.$#"
280
275
count:1
281
276
path:src/Parsers/Keys.php
282
277
283
278
-
284
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Limit\\:\\:\\$offset \\(int\\|string\\) does not accept mixed\\.$#"
279
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Limit\\:\\:\\$offset \\(int\\|string\\) does not accept bool\\|float\\|int\\|string\\.$#"
285
280
count:1
286
281
path:src/Parsers/Limits.php
287
282
288
283
-
289
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Limit\\:\\:\\$rowCount \\(int\\|string\\) does not accept mixed\\.$#"
284
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Limit\\:\\:\\$rowCount \\(int\\|string\\) does not accept bool\\|float\\|int\\|string\\.$#"
290
285
count:1
291
286
path:src/Parsers/Limits.php
292
287
@@ -351,7 +346,7 @@ parameters:
351
346
path:src/Parsers/OrderKeywords.php
352
347
353
348
-
354
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:\\$name \\(string\\) does not accept mixed\\.$#"
349
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:\\$name \\(string\\) does not accept bool\\|float\\|int\\|string\\.$#"
355
350
count:1
356
351
path:src/Parsers/ParameterDefinitions.php
357
352
@@ -371,7 +366,7 @@ parameters:
371
366
path:src/Parsers/PartitionDefinitions.php
372
367
373
368
-
374
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:\\$name \\(string\\) does not accept mixed\\.$#"
369
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:\\$name \\(string\\) does not accept bool\\|float\\|int\\|string\\.$#"
375
370
count:1
376
371
path:src/Parsers/PartitionDefinitions.php
377
372
@@ -381,7 +376,7 @@ parameters:
381
376
path:src/Parsers/PartitionDefinitions.php
382
377
383
378
-
384
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:\\$type \\(string\\) does not accept mixed\\.$#"
379
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:\\$type \\(string\\) does not accept bool\\|float\\|int\\|string\\.$#"
385
380
count:1
386
381
path:src/Parsers/PartitionDefinitions.php
387
382
@@ -530,11 +525,6 @@ parameters:
530
525
count:1
531
526
path:src/Statement.php
532
527
533
-
-
534
-
message:"#^Cannot cast mixed to string\\.$#"
535
-
count:1
536
-
path:src/Statement.php
537
-
538
528
-
539
529
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Statement\\:\\:\\$options \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\) does not accept array\\<PhpMyAdmin\\\\SqlParser\\\\Component\\>\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\FunctionCall\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\IntoKeyword\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\Limit\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#"
540
530
count:1
@@ -606,12 +596,12 @@ parameters:
606
596
path:src/Statements/CreateStatement.php
607
597
608
598
-
609
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\:\\:\\$partitionsNum \\(int\\|null\\) does not accept mixed\\.$#"
599
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\:\\:\\$partitionsNum \\(int\\|null\\) does not accept bool\\|float\\|int\\|string\\.$#"
610
600
count:1
611
601
path:src/Statements/CreateStatement.php
612
602
613
603
-
614
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\:\\:\\$subpartitionsNum \\(int\\|null\\) does not accept mixed\\.$#"
604
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\:\\:\\$subpartitionsNum \\(int\\|null\\) does not accept bool\\|float\\|int\\|string\\.$#"
615
605
count:1
616
606
path:src/Statements/CreateStatement.php
617
607
@@ -626,7 +616,7 @@ parameters:
626
616
path:src/Statements/DeleteStatement.php
627
617
628
618
-
629
-
message:"#^Parameter \\#1 \\$haystack of function stripos expects string, mixed given\\.$#"
619
+
message:"#^Parameter \\#1 \\$haystack of function stripos expects string, string\\|null given\\.$#"
630
620
count:1
631
621
path:src/Statements/DeleteStatement.php
632
622
@@ -641,22 +631,17 @@ parameters:
641
631
path:src/Statements/ExplainStatement.php
642
632
643
633
-
644
-
message:"#^Cannot cast mixed to string\\.$#"
645
-
count:1
646
-
path:src/Statements/ExplainStatement.php
647
-
648
-
-
649
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:\\$connectionId \\(int\\|null\\) does not accept mixed\\.$#"
634
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:\\$connectionId \\(int\\|null\\) does not accept bool\\|float\\|int\\|string\\.$#"
650
635
count:1
651
636
path:src/Statements/ExplainStatement.php
652
637
653
638
-
654
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:\\$explainedDatabase \\(string\\|null\\) does not accept mixed\\.$#"
639
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:\\$explainedDatabase \\(string\\|null\\) does not accept bool\\|float\\|int\\|string\\.$#"
655
640
count:1
656
641
path:src/Statements/ExplainStatement.php
657
642
658
643
-
659
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:\\$explainedTable \\(string\\|null\\) does not accept mixed\\.$#"
644
+
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:\\$explainedTable \\(string\\|null\\) does not accept bool\\|float\\|int\\|string\\.$#"
660
645
count:1
661
646
path:src/Statements/ExplainStatement.php
662
647
@@ -681,7 +666,7 @@ parameters:
681
666
path:src/Statements/LoadStatement.php
682
667
683
668
-
684
-
message:"#^Parameter \\#3 \\$keyword of method PhpMyAdmin\\\\SqlParser\\\\Statements\\\\LoadStatement\\:\\:parseFileOptions\\(\\) expects string, mixed given\\.$#"
669
+
message:"#^Parameter \\#3 \\$keyword of method PhpMyAdmin\\\\SqlParser\\\\Statements\\\\LoadStatement\\:\\:parseFileOptions\\(\\) expects string, bool\\|float\\|int\\|string given\\.$#"
685
670
count:1
686
671
path:src/Statements/LoadStatement.php
687
672
@@ -695,16 +680,6 @@ parameters:
695
680
count:1
696
681
path:src/Statements/MaintenanceStatement.php
697
682
698
-
-
699
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\PurgeStatement\\:\\:\\$endOption \\(string\\|null\\) does not accept mixed\\.$#"
700
-
count:1
701
-
path:src/Statements/PurgeStatement.php
702
-
703
-
-
704
-
message:"#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\PurgeStatement\\:\\:\\$logType \\(string\\|null\\) does not accept mixed\\.$#"
0 commit comments