-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpstan.neon
26 lines (23 loc) · 948 Bytes
/
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
includes:
- ./vendor/nunomaduro/larastan/extension.neon
parameters:
paths:
- app/
- routes/
- database/
- tests/
# Level 9 is the highest level
level: 9
ignoreErrors:
- '#^Call to an undefined method Illuminate\\Database\\Query\\Builder::withTrashed\(\).$#'
- '#^Call to an undefined method Illuminate\\Database\\Query\\Builder::onlyTrashed\(\).$#'
-
message: '#^Undefined variable: \$this$#'
paths:
- tests/*
-
message: '#^Method App\\Data\\[a-zA-Z0-9\\_]+\:\:attributes\(\) should return array\<string, string\> but returns mixed\.$#'
path: app/Data/*
-
message: '#^Method App\\Http\\Controllers\\ImagesController\:\:show\(\) should return Symfony\\Component\\HttpFoundation\\StreamedResponse but returns mixed\.$#'
path: app/Http/Controllers/ImagesController.php