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-171Lines changed: 9 additions & 171 deletions
Original file line number
Diff line number
Diff line change
@@ -126,12 +126,6 @@ parameters:
126
126
count:1
127
127
path:src/DatabaseQuery.php
128
128
129
-
-
130
-
message:'#^If condition is always true\.$#'
131
-
identifier:if.alwaysTrue
132
-
count:9
133
-
path:src/DatabaseQuery.php
134
-
135
129
-
136
130
message:'#^Instanceof between Joomla\\Database\\DatabaseInterface and Joomla\\Database\\DatabaseInterface will always evaluate to true\.$#'
137
131
identifier:instanceof.alwaysTrue
@@ -144,30 +138,12 @@ parameters:
144
138
count:1
145
139
path:src/DatabaseQuery.php
146
140
147
-
-
148
-
message:'#^Left side of \|\| is always true\.$#'
149
-
identifier:booleanOr.leftAlwaysTrue
150
-
count:1
151
-
path:src/DatabaseQuery.php
152
-
153
-
-
154
-
message:'#^Parameter \#2 \$array of function implode expects array\|null, string given\.$#'
155
-
identifier:argument.type
156
-
count:1
157
-
path:src/DatabaseQuery.php
158
-
159
141
-
160
142
message:'#^Parameter \#2 \$elements of class Joomla\\Database\\Query\\QueryElement constructor expects array\<string\>\|string, null given\.$#'
161
143
identifier:argument.type
162
144
count:1
163
145
path:src/DatabaseQuery.php
164
146
165
-
-
166
-
message:'#^Property Joomla\\Database\\DatabaseQuery\:\:\$querySet has unknown class Joomla\\Database\\Query\\DatabaseQuery as its type\.$#'
167
-
identifier:class.notFound
168
-
count:1
169
-
path:src/DatabaseQuery.php
170
-
171
147
-
172
148
message:'#^Return type \(string\) of method Joomla\\Database\\DatabaseQuery\:\:length\(\) should be compatible with return type \(int\) of method Joomla\\Database\\QueryInterface\:\:length\(\)$#'
173
149
identifier:method.childReturnType
@@ -216,18 +192,6 @@ parameters:
216
192
count:1
217
193
path:src/Mysql/MysqlDriver.php
218
194
219
-
-
220
-
message:'#^Method Joomla\\Database\\Mysql\\MysqlImporter\:\:getKeyLookup\(\) has Exception in PHPDoc @throws tag but it''s not thrown\.$#'
221
-
identifier:throws.unusedType
222
-
count:1
223
-
path:src/Mysql/MysqlImporter.php
224
-
225
-
-
226
-
message:'#^If condition is always true\.$#'
227
-
identifier:if.alwaysTrue
228
-
count:1
229
-
path:src/Mysql/MysqlQuery.php
230
-
231
195
-
232
196
message:'#^Call to function is_callable\(\) with array\{mysqli, ''close''\} will always evaluate to true\.$#'
233
197
identifier:function.alreadyNarrowedType
@@ -264,12 +228,6 @@ parameters:
264
228
count:1
265
229
path:src/Mysqli/MysqliDriver.php
266
230
267
-
-
268
-
message:'#^Method Joomla\\Database\\Mysqli\\MysqliDriver\:\:connect\(\) has RuntimeException in PHPDoc @throws tag but it''s not thrown\.$#'
269
-
identifier:throws.unusedType
270
-
count:1
271
-
path:src/Mysqli/MysqliDriver.php
272
-
273
231
-
274
232
message:'#^Method Joomla\\Database\\Mysqli\\MysqliDriver\:\:serverClaimsUtf8mb4Support\(\) is unused\.$#'
275
233
identifier:method.unused
@@ -300,12 +258,6 @@ parameters:
300
258
count:2
301
259
path:src/Mysqli/MysqliDriver.php
302
260
303
-
-
304
-
message:'#^If condition is always true\.$#'
305
-
identifier:if.alwaysTrue
306
-
count:1
307
-
path:src/Mysqli/MysqliQuery.php
308
-
309
261
-
310
262
message:'#^PHPDoc type array of property Joomla\\Database\\Mysqli\\MysqliQuery\:\:\$nullDatetimeList is not covariant with PHPDoc type array\<string\> of overridden property Joomla\\Database\\DatabaseQuery\:\:\$nullDatetimeList\.$#'
311
263
identifier:property.phpDocType
@@ -360,12 +312,6 @@ parameters:
360
312
count:4
361
313
path:src/Pdo/PdoDriver.php
362
314
363
-
-
364
-
message:'#^Method Joomla\\Database\\Pdo\\PdoDriver\:\:connect\(\) has RuntimeException in PHPDoc @throws tag but it''s not thrown\.$#'
365
-
identifier:throws.unusedType
366
-
count:1
367
-
path:src/Pdo/PdoDriver.php
368
-
369
315
-
370
316
message:'#^PHPDoc type PDO of property Joomla\\Database\\Pdo\\PdoDriver\:\:\$connection is not covariant with PHPDoc type resource of overridden property Joomla\\Database\\DatabaseDriver\:\:\$connection\.$#'
371
317
identifier:property.phpDocType
@@ -402,12 +348,6 @@ parameters:
402
348
count:1
403
349
path:src/Pgsql/PgsqlDriver.php
404
350
405
-
-
406
-
message:'#^Method Joomla\\Database\\Pgsql\\PgsqlDriver\:\:getTableCreate\(\) has RuntimeException in PHPDoc @throws tag but it''s not thrown\.$#'
407
-
identifier:throws.unusedType
408
-
count:1
409
-
path:src/Pgsql/PgsqlDriver.php
410
-
411
351
-
412
352
message:'#^Strict comparison using \=\=\= between string and 0 will always evaluate to false\.$#'
413
353
identifier:identical.alwaysFalse
@@ -498,12 +438,6 @@ parameters:
498
438
count:1
499
439
path:src/Pgsql/PgsqlImporter.php
500
440
501
-
-
502
-
message:'#^If condition is always true\.$#'
503
-
identifier:if.alwaysTrue
504
-
count:12
505
-
path:src/Pgsql/PgsqlQuery.php
506
-
507
441
-
508
442
message:'#^Instanceof between string and \$this\(Joomla\\Database\\Pgsql\\PgsqlQuery\) will always evaluate to false\.$#'
509
443
identifier:instanceof.alwaysFalse
@@ -523,8 +457,14 @@ parameters:
523
457
path:src/Pgsql/PgsqlQuery.php
524
458
525
459
-
526
-
message:'#^Ternary operator condition is always true\.$#'
527
-
identifier:ternary.alwaysTrue
460
+
message:'#^Property Joomla\\Database\\DatabaseQuery\:\:\$limit \(int\|null\) does not accept Joomla\\Database\\Query\\QueryElement\.$#'
461
+
identifier:assign.propertyType
462
+
count:1
463
+
path:src/Pgsql/PgsqlQuery.php
464
+
465
+
-
466
+
message:'#^Property Joomla\\Database\\DatabaseQuery\:\:\$offset \(int\|null\) does not accept Joomla\\Database\\Query\\QueryElement\.$#'
467
+
identifier:assign.propertyType
528
468
count:1
529
469
path:src/Pgsql/PgsqlQuery.php
530
470
@@ -552,72 +492,12 @@ parameters:
552
492
count:1
553
493
path:src/Sqlite/SqliteDriver.php
554
494
555
-
-
556
-
message:'#^Method Joomla\\Database\\Sqlite\\SqliteDriver\:\:alterDbCharacterSet\(\) has RuntimeException in PHPDoc @throws tag but it''s not thrown\.$#'
557
-
identifier:throws.unusedType
558
-
count:1
559
-
path:src/Sqlite/SqliteDriver.php
560
-
561
-
-
562
-
message:'#^Method Joomla\\Database\\Sqlite\\SqliteDriver\:\:connect\(\) has RuntimeException in PHPDoc @throws tag but it''s not thrown\.$#'
563
-
identifier:throws.unusedType
564
-
count:1
565
-
path:src/Sqlite/SqliteDriver.php
566
-
567
-
-
568
-
message:'#^Method Joomla\\Database\\Sqlite\\SqliteDriver\:\:createDatabase\(\) has RuntimeException in PHPDoc @throws tag but it''s not thrown\.$#'
569
-
identifier:throws.unusedType
570
-
count:1
571
-
path:src/Sqlite/SqliteDriver.php
572
-
573
-
-
574
-
message:'#^Method Joomla\\Database\\Sqlite\\SqliteDriver\:\:getConnectionCollation\(\) has RuntimeException in PHPDoc @throws tag but it''s not thrown\.$#'
575
-
identifier:throws.unusedType
576
-
count:1
577
-
path:src/Sqlite/SqliteDriver.php
578
-
579
-
-
580
-
message:'#^Method Joomla\\Database\\Sqlite\\SqliteDriver\:\:getConnectionEncryption\(\) has RuntimeException in PHPDoc @throws tag but it''s not thrown\.$#'
581
-
identifier:throws.unusedType
582
-
count:1
583
-
path:src/Sqlite/SqliteDriver.php
584
-
585
-
-
586
-
message:'#^Method Joomla\\Database\\Sqlite\\SqliteDriver\:\:lockTable\(\) has RuntimeException in PHPDoc @throws tag but it''s not thrown\.$#'
587
-
identifier:throws.unusedType
588
-
count:1
589
-
path:src/Sqlite/SqliteDriver.php
590
-
591
-
-
592
-
message:'#^Method Joomla\\Database\\Sqlite\\SqliteDriver\:\:unlockTables\(\) has RuntimeException in PHPDoc @throws tag but it''s not thrown\.$#'
message:'#^Method Joomla\\Database\\Sqlsrv\\SqlsrvDriver\:\:connect\(\) has RuntimeException in PHPDoc @throws tag but it''s not thrown\.$#'
647
-
identifier:throws.unusedType
648
-
count:1
649
-
path:src/Sqlsrv/SqlsrvDriver.php
650
-
651
-
-
652
-
message:'#^Method Joomla\\Database\\Sqlsrv\\SqlsrvDriver\:\:lockTable\(\) has RuntimeException in PHPDoc @throws tag but it''s not thrown\.$#'
653
-
identifier:throws.unusedType
654
-
count:1
655
-
path:src/Sqlsrv/SqlsrvDriver.php
656
-
657
-
-
658
-
message:'#^Method Joomla\\Database\\Sqlsrv\\SqlsrvDriver\:\:unlockTables\(\) has RuntimeException in PHPDoc @throws tag but it''s not thrown\.$#'
659
-
identifier:throws.unusedType
660
-
count:1
661
-
path:src/Sqlsrv/SqlsrvDriver.php
662
-
663
525
-
664
526
message:'#^Parameter \#2 \$array of function implode expects array\<string\>, list\<array\|string\> given\.$#'
665
527
identifier:argument.type
666
-
count:1
528
+
count:2
667
529
path:src/Sqlsrv/SqlsrvDriver.php
668
530
669
531
-
@@ -690,24 +552,12 @@ parameters:
690
552
count:1
691
553
path:src/Sqlsrv/SqlsrvQuery.php
692
554
693
-
-
694
-
message:'#^If condition is always true\.$#'
695
-
identifier:if.alwaysTrue
696
-
count:14
697
-
path:src/Sqlsrv/SqlsrvQuery.php
698
-
699
555
-
700
556
message:'#^Instanceof between Joomla\\Database\\DatabaseInterface and Joomla\\Database\\DatabaseInterface will always evaluate to true\.$#'
701
557
identifier:instanceof.alwaysTrue
702
558
count:1
703
559
path:src/Sqlsrv/SqlsrvQuery.php
704
560
705
-
-
706
-
message:'#^Left side of \|\| is always true\.$#'
707
-
identifier:booleanOr.leftAlwaysTrue
708
-
count:1
709
-
path:src/Sqlsrv/SqlsrvQuery.php
710
-
711
561
-
712
562
message:'#^Offset int\<1, max\> on list in isset\(\) does not exist\.$#'
713
563
identifier:isset.offset
@@ -720,18 +570,6 @@ parameters:
720
570
count:1
721
571
path:src/Sqlsrv/SqlsrvQuery.php
722
572
723
-
-
724
-
message:'#^Parameter \#2 \$array of function implode expects array\<string\>, array\<array\|string\> given\.$#'
725
-
identifier:argument.type
726
-
count:1
727
-
path:src/Sqlsrv/SqlsrvQuery.php
728
-
729
-
-
730
-
message:'#^Result of \|\| is always true\.$#'
731
-
identifier:booleanOr.alwaysTrue
732
-
count:1
733
-
path:src/Sqlsrv/SqlsrvQuery.php
734
-
735
573
-
736
574
message:'#^Return type \(string\) of method Joomla\\Database\\Sqlsrv\\SqlsrvQuery\:\:length\(\) should be compatible with return type \(int\) of method Joomla\\Database\\QueryInterface\:\:length\(\)$#'
0 commit comments