-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
30 lines (26 loc) · 1.12 KB
/
phpstan.neon
File metadata and controls
30 lines (26 loc) · 1.12 KB
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
includes:
- vendor/larastan/larastan/extension.neon
parameters:
paths:
- app/
# Level 9 is the highest/strictest level
level: 9
ignoreErrors:
# Laravel Notifiable trait is not generic in stub
- '#PHPDoc tag @use contains generic type.*Notifiable#'
# Kernel and Handler arrays have covariance issues with framework
- '#PHPDoc type array of property App\\Http\\Kernel#'
- '#PHPDoc type array of property App\\Exceptions\\Handler#'
- '#Property App\\Http\\Kernel::\$middleware#'
- '#Property App\\Exceptions\\Handler::\$dontReport#'
- '#Property App\\Exceptions\\Handler::\$dontFlash#'
# Middleware arrays
- '#PHPDoc type array of property App\\Http\\Middleware#'
- '#Property App\\Http\\Middleware.*::\$except#'
# Factory types that may not exist
- '#PHPDoc tag @use has invalid type Database\\Factories#'
- '#Type Database\\Factories.*in generic type#'
# Ignore nullsafe warnings as they are stylistic
- '#Using nullsafe property access#'
excludePaths:
- app/Console/Kernel.php