-
Notifications
You must be signed in to change notification settings - Fork 9
/
phpstan.neon
36 lines (28 loc) · 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
28
29
30
31
32
33
34
35
36
includes:
- ./vendor/nunomaduro/larastan/extension.neon
parameters:
# tmpDir: '.phpstan_cache'
paths:
- app
- config
- database/migrations
- routes
excludePaths:
- app/Modules/Parsedown
# The level 8 is the highest level
level: 6
reportUnmatchedIgnoredErrors: true
# remove some day
checkGenericClassInNonGenericObjectType: false
ignoreErrors:
- '#isRole(Master|Admin|BusLeader|Instructor|Teacher|Parent|Or)*\(\)#' # Is magic method
-
message: '#Access to an undefined property CzechitasApp\\Models\\Category::\$imagePath#'
path: app/Http/Controllers/Api/CategoryController.php
-
message: '#Parameter \#(1|2) \$adapter of class .* constructor expects League\\Flysystem\\FilesystemAdapter#'
path: app/Providers/AppServiceProvider.php
# Remove in future
- '#Access to an undefined property Illuminate\\Routing\\Route::\$[a-z0-9]+#i'
- '#PHPDoc type .* of property .* is not covariant with PHPDoc type#'
- '#Relation .* is not found in CzechitasApp\\Models\\[a-z0-9]+ model#i'