generated from MarwanAlsoltany/php-package
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpstan.neon.dist
25 lines (25 loc) · 986 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
parameters:
level: 5
paths:
- 'src'
excludePaths:
analyse: { }
analyseAndScan: { }
fileExtensions:
- 'php'
tmpDir: 'build/phpstan'
typeAliases:
number: 'int|float'
scalar: 'bool|int|float|string'
scalarOrNull: 'null|bool|int|float|string'
nullable: 'null|bool|int|float|string|array|object'
parameters: 'array<string,mixed>'
ignoreErrors:
# thrown for exception that implement an interface that extends Throwable
- '/(.+?) is not subtype of Throwable/'
# this is a false positive, the side is mostly used for assignment
- '/(.+?) side of (.+?) is always \w+/'
# this is a false positive, native types are not given the benefit of the doubt
- '/Cannot call method \w+\(\) on \w+/'
# this is a false positive, where it is raised, it makes simply no sense
- '/Instanceof between (.+?) and (.+?) will always evaluate to \w+/'