mirror of
https://gh.wpcy.net/https://github.com/WordPress/WordPress-Coding-Standards.git
synced 2026-04-24 23:58:18 +08:00
This commit is a plain version drop. This commit does **not** include: * Removing any work-arounds which _may_ exist in the codebase, to support PHP < 7.2. * Modernizing the codebase. These things can be addressed at will in follow up PRs. Fixes 2606
26 lines
880 B
Text
26 lines
880 B
Text
parameters:
|
|
phpVersion: 70200
|
|
level: 5
|
|
paths:
|
|
- WordPress
|
|
bootstrapFiles:
|
|
- Tests/bootstrap.php
|
|
treatPhpDocTypesAsCertain: false
|
|
|
|
ignoreErrors:
|
|
# Level 0
|
|
- '#^Result of method \S+ \(void\) is used\.$#'
|
|
|
|
# Level 4
|
|
- '#^Property \S+::\$\S+ \([^)]+\) in isset\(\) is not nullable\.$#'
|
|
-
|
|
count: 1
|
|
message: '#^Result of && is always true\.$#'
|
|
path: WordPress/Sniffs/Security/EscapeOutputSniff.php
|
|
-
|
|
count: 1
|
|
message: '#^Strict comparison using === between true and false will always evaluate to false\.$#'
|
|
path: WordPress/Sniffs/Utils/I18nTextDomainFixerSniff.php
|
|
|
|
# Level 5
|
|
- '#^Parameter \#3 \$value of method \S+File::recordMetric\(\) expects string, \(?(float|int|bool)(\|(float|int|bool))*\)? given\.$#'
|