-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphpstan.neon
38 lines (38 loc) · 1.7 KB
/
phpstan.neon
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
27
28
29
30
31
32
33
34
35
36
37
38
parameters:
level: 4
treatPhpDocTypesAsCertain: false
paths:
- ./
excludePaths:
- ./vendor/*
- ./tests/*
# These files contain giant arrays that seem to make newer versions of phpstan stall/crash
- ./src/Zend/Validate/Hostname/*
ignoreErrors:
- '#Variable \$context in isset\(\) always exists and is not nullable\.#'
- '#Binary operation "\*" between non-empty-string and .+ results in an error\.#'
- '#Binary operation "\*" between 3 and non-empty-string results in an error\.#'
# This is intentional for short circuiting/execution flow management
-
message: '#Do-while loop condition is always false\.#'
path: ./src/Zend/Validate/Hostname.php
-
message: '#Binary operation "\*" between int<1, max> and non-empty-string results in an error\.#'
path: ./src/Zend/Validate/Ccnum.php
count: 1
-
message: '#Binary operation "\*" between int<1, max> and non-empty-string results in an error\.#'
path: ./src/Zend/Validate/CreditCard.php
count: 1
-
message: '#Call to function method_exists\(\) with object and ''__toString'' will always evaluate to true\.#'
path: ./src/Zend/Validate/NotEmpty.php
# This does seem like a bug in ZF1, as the loop with $j will never run
-
message: '#Comparison operation "<" between int<4, max> and 4 is always false\.#'
path: ./src/Zend/Validate/EmailAddress.php
count: 1
-
message: '#Cannot access offset \*NEVER\* on int\.#'
path: ./src/Zend/Validate/EmailAddress.php
count: 2