forked from WordPress/WordPress-Coding-Standards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon.dist
26 lines (23 loc) · 921 Bytes
/
phpstan.neon.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
parameters:
phpVersion: 70100 # Needs to be 70100 or higher... sigh...
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\.$#'