Skip to content

Commit a87abeb

Browse files
committed
PHPStan config: update for release of PHPCSUtils 1.0.10
PHPCSUtils 1.0.10 has been released, which fixes two false positives, meaning these ignore annotations can now be removed (as per the inline comments). Ref: https://github.com/PHPCSStandards/PHPCSUtils/releases/tag/1.0.10
1 parent 8b1a52e commit a87abeb

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

phpstan.neon.dist

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ 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-
2014
# Level 4
2115
- '#^Property \S+::\$\S+ \([^)]+\) in isset\(\) is not nullable\.$#'
2216
-
@@ -28,11 +22,5 @@ parameters:
2822
message: '#^Strict comparison using === between true and false will always evaluate to false\.$#'
2923
path: WordPress/Sniffs/Utils/I18nTextDomainFixerSniff.php
3024

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-
3725
# Level 5
3826
- '#^Parameter \#3 \$value of method \S+File::recordMetric\(\) expects string, \(?(float|int|bool)(\|(float|int|bool))*\)? given\.$#'

0 commit comments

Comments
 (0)