/
phpstan.neon
45 lines (32 loc) · 1.27 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
37
38
39
40
41
42
43
44
45
includes:
- vendor/symplify/phpstan-extensions/config/config.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
parameters:
paths:
- config
- src
- tests
# The level 8 is the highest level
level: 8
checkGenericClassInNonGenericObjectType: false
# Larstan recommendation:
checkMissingIterableValueType: false
# to allow installing with various phsptan versions without reporting old errors here
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# Larstan recommendation:
- '#Unsafe usage of new static#'
# Ignore errors in Laravel's Middleware classes
-
message: '#Method App\\Http\\Middleware\\RedirectIfAuthenticated\:\:handle\(\) has no return typehint specified#'
path: app\Http\Middleware\RedirectIfAuthenticated.php
-
message: '#Method App\\Http\\Middleware\\Authenticate\:\:redirectTo\(\) should return string\|null but return statement is missing#'
path: app\Http\Middleware\Authenticate.php
# TODO: API_KEY will need to be refactored.
- '#Access to constant API_KEY on an unknown class PenYFan\\WatsonTextToSpeech\\Tests\\AbstractSecret#'
# buggy
# mixed
# cache buggy
# tests
# iterable