mirror of
https://github.com/WordPress/WordPress-Coding-Standards.git
synced 2025-08-30 03:11:24 +08:00
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
This commit is contained in:
parent
8b1a52e046
commit
a87abeb57e
1 changed files with 0 additions and 12 deletions
|
@ -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\.$#'
|
||||
-
|
||||
|
@ -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…
Add table
Add a link
Reference in a new issue