Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPStan config: update for release of PHPCSUtils 1.0.10 #2432

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ parameters:
# Level 0
- '#^Result of method \S+ \(void\) is used\.$#'

-
# False positive. Will be fixed via next version of PHPCSUtils.
count: 1
message: "#^Cannot unset offset 'query' on non-empty-array<int, array<string, int\\|string>>.$#"
path: WordPress/Sniffs/DB/PreparedSQLPlaceholdersSniff.php

# Level 4
- '#^Property \S+::\$\S+ \([^)]+\) in isset\(\) is not nullable\.$#'
-
Expand All @@ -28,11 +22,5 @@ parameters:
message: '#^Strict comparison using === between true and false will always evaluate to false\.$#'
path: WordPress/Sniffs/Utils/I18nTextDomainFixerSniff.php

-
# False positive. Will be fixed via next version of PHPCSUtils.
count: 1
message: "#^Cannot unset offset 'file' on array<int, array<string, int\\|string>>.$#"
path: WordPress/Sniffs/Security/EscapeOutputSniff.php

# Level 5
- '#^Parameter \#3 \$value of method \S+File::recordMetric\(\) expects string, \(?(float|int|bool)(\|(float|int|bool))*\)? given\.$#'
Loading