forked from czechitas/da-test-webapp
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan.neon
More file actions
33 lines (25 loc) · 865 Bytes
/
phpstan.neon
File metadata and controls
33 lines (25 loc) · 865 Bytes
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
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
# 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'