-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
32 lines (28 loc) · 1.03 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
includes:
- vendor/larastan/larastan/extension.neon
parameters:
paths:
- app
- database/factories
- database/seeders
- routes
inferPrivatePropertyTypeFromConstructor: true
# Level 9 is the highest level
level: 6
ignoreErrors:
# larastan needs to manage ->pivot properties
#- '#Access to an undefined property App\\Models\\[^:]*::\$pivot\.#'
#- '#Method\s.+?\sreturn type has no value type specified in iterable type array\.#'
- '#\s.+?\sno value type specified in iterable type array\.#'
#
excludePaths:
# - ./*/*/FileToBeExcluded.php
- app/Http/Controllers/Auth/VerifyEmailController.php
- app/Http/ViewModels/Names/NameViewModel.php
- app/Http/ViewModels/Search/SearchViewModel.php
- app/Http/ViewModels/User/ListViewModel.php
- app/Http/ViewModels/User/PublicListViewModel.php
#
# checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
treatPhpDocTypesAsCertain: false