Skip to content

Commit a521f60

Browse files
authored
Merge pull request #2412 from jrfnl/feature/fix-phpstan
PHPStan: ignore two new issues
2 parents b595dc4 + a4b330a commit a521f60

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

phpstan.neon.dist

+12
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ parameters:
1111
# Level 0
1212
- '#^Result of method \S+ \(void\) is used\.$#'
1313

14+
-
15+
# False positive. Will be fixed via next version of PHPCSUtils.
16+
count: 1
17+
message: "#^Cannot unset offset 'query' on non-empty-array<int, array<string, int\\|string>>.$#"
18+
path: WordPress/Sniffs/DB/PreparedSQLPlaceholdersSniff.php
19+
1420
# Level 4
1521
- '#^Property \S+::\$\S+ \([^)]+\) in isset\(\) is not nullable\.$#'
1622
-
@@ -22,5 +28,11 @@ parameters:
2228
message: '#^Strict comparison using === between true and false will always evaluate to false\.$#'
2329
path: WordPress/Sniffs/Utils/I18nTextDomainFixerSniff.php
2430

31+
-
32+
# False positive. Will be fixed via next version of PHPCSUtils.
33+
count: 1
34+
message: "#^Cannot unset offset 'file' on array<int, array<string, int\\|string>>.$#"
35+
path: WordPress/Sniffs/Security/EscapeOutputSniff.php
36+
2537
# Level 5
2638
- '#^Parameter \#3 \$value of method \S+File::recordMetric\(\) expects string, \(?(float|int|bool)(\|(float|int|bool))*\)? given\.$#'

0 commit comments

Comments
 (0)