-
-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathphpstan.neon
36 lines (33 loc) · 935 Bytes
/
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
includes:
- phpstan-baseline.neon
parameters:
inferPrivatePropertyTypeFromConstructor: true
checkMissingIterableValueType: false
checkUninitializedProperties: true
checkGenericClassInNonGenericObjectType: false
paths:
- ./src
level: 8
bootstrapFiles:
- ./vendor/autoload.php
banned_code:
nodes:
# enable detection of die/exit
-
type: Expr_Exit
functions: null
# enable detection of a set of functions
-
type: Expr_FuncCall
functions:
- dd
- debug_backtrace
- dump
- print_r
- var_dump
excludePaths:
- ./src/Bundle/Resources
ignoreErrors:
-
message: '#Unsafe usage of new static\(\).*#'
path: ./src/ModelFactory.php