-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathphpstan.neon
27 lines (21 loc) · 1.1 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
includes:
- ./vendor/nunomaduro/larastan/extension.neon
parameters:
paths:
- app
- Modules
excludePaths:
- Modules/Invoice/Entities/Invoice.php # Ignore Error occurring due to Encryptable Trait
- Modules/*/vendor/composer/ClassLoader.php
- Modules/*/Database/Factories/*.php # Ignore Error occurring due to Laravel factories
- Modules/*/Database/Seeders/*.php # Ignore Error occurring due to Laravel factories
- Modules/*/Database/Seeders/*.php # Ignore Error occurring due to Laravel factories
- Modules/*/Tests/*.php # Ignore Error occurring due to Laravel factories
# The level 8 is the highest level
level: 5
ignoreErrors:
- '#Access to an undefined property [a-zA-Z0-9\\_\|\<]+>|[a-zA-Z0-9\\_]+::\$[a-zA-Z0-9\\_]+#'
- '#Call to an undefined method [a-zA-Z0-9\\_\<\>]+::[a-zA-Z]+\(\)#'
- '#Static method [a-zA-Z0-9\\_]+::[a-zA-Z]+\(\) invoked with [0-9]+ [a-zA-Z]+, [0-9\-]+ required#'
- '#Cannot access property \$[a-zA-Z0-9\\_]+ on string#'
checkMissingIterableValueType: false