-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
43 lines (36 loc) · 1.64 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
39
40
41
42
includes:
- ./vendor/nunomaduro/larastan/extension.neon
parameters:
paths:
- app/
# Level 9 is the highest level
level: 5
inferPrivatePropertyTypeFromConstructor: true
checkMissingIterableValueType: false
ignoreErrors:
- '/.*Call to an undefined method Illuminate\\Http\\.*/'
- '/.*Call to an undefined method Illuminate\\Database\\.*/'
- '/.*Access to an undefined property Illuminate\\Database\\.*/'
- '/.*Call to an undefined method Illuminate\\Support\\.*/'
- '/.*Call to an undefined static method Illuminate\\Support\\.*/'
- '/.*Access to an undefined property App(.*)Models.*/'
- '/.*Access to undefined constant App(.*)Models.*/'
- '/.*Call to an undefined method App(.*)Models.*/'
- '/.*Call to an undefined static method App(.*)Models.*/'
- '/.*Relation(.*)is not found in App(.*)Models.*/'
- '/.*Call to an undefined method Illuminate\\Contracts\\Auth\\Authenticatable::.*/'
- '/.*Access to an undefined property Illuminate\\Contracts\\Auth\\Authenticatable::.*/'
- '/.*Argument of an invalid type(.*)supplied for foreach, only iterables are supported*/'
- '/.*Access to an undefined property App(.*)Requests.*/'
- '/.*Call to an undefined method App(.*)Request.*/'
- '/.*Illuminate\\Database\\Eloquent\\Model\|null given.*/'
- '/.*Illuminate\\Database\\Eloquent\\Model given.*/'
- '/.*invoke.*/'
- '/.*trigger.*/'
scanFiles:
- _ide_helper.php
- _ide_helper_models.php
- .phpstorm.meta.php
# excludePaths:
# - ./*/*/FileToBeExcluded.php
#