Skip to content

Commit ca9184e

Browse files
authored
Merge pull request #2432 from WordPress/feature/phpstan-fix-build
PHPStan config: update for release of PHPCSUtils 1.0.10
2 parents 8b1a52e + a87abeb commit ca9184e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Diff for: phpstan.neon.dist

-12
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)