WordPress-Coding-Standards/phpstan.neon.dist
jrfnl d03c848562
Drop support for PHP < 7.2
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
2025-09-15 22:49:33 +02:00

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\.$#'