forked from rebing/graphql-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlarastan.neon
83 lines (71 loc) · 2.97 KB
/
larastan.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# This is copied from vendor/nunomaduro/larastan/extension.neon
#
# The `ignoreErrors` have been commented out (un-ignored…), as they don't apply
# and because in our phpstan.neon.dist we enable `reportUnmatchedIgnoredErrors`
parameters:
scopeClass: NunoMaduro\Larastan\Analyser\Scope
universalObjectCratesClasses:
- Illuminate\Database\Eloquent\Model
- Illuminate\Http\Resources\Json\JsonResource
- Illuminate\Http\Request
- Illuminate\Contracts\Auth\Authenticatable
excludes_analyse:
- *.blade.php
ignoreErrors:
#- '#Result of function abort \(void\) is used#'
#- '#Call to an undefined method Illuminate\\Support\\HigherOrder#'
#- '#Method App\\Exceptions\\Handler::render\(\) should return Illuminate\\Http\\Response but returns Symfony\\Component\\HttpFoundation\\Response#'
#- '#Property App\\Http\\Middleware\\TrustProxies::\$headers \(string\) does not accept default value of type int#'
# Ignore error from issue #244
#- '#Cannot call method viaRequest\(\) on Illuminate\\Auth\\AuthManager\|null\.#'
bootstrap: %rootDir%/../../nunomaduro/larastan/bootstrap.php
reportUnmatchedIgnoredErrors: false
services:
-
class: NunoMaduro\Larastan\Methods\Extension
tags:
- phpstan.broker.methodsClassReflectionExtension
-
class: NunoMaduro\Larastan\Properties\Extension
tags:
- phpstan.broker.propertiesClassReflectionExtension
-
class: NunoMaduro\Larastan\ReturnTypes\ModelExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
-
class: NunoMaduro\Larastan\ReturnTypes\AuthExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
-
class: NunoMaduro\Larastan\ReturnTypes\RequestExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: NunoMaduro\Larastan\ReturnTypes\Helpers\CookieExtension
tags:
- phpstan.broker.dynamicFunctionReturnTypeExtension
-
class: NunoMaduro\Larastan\ReturnTypes\Helpers\ResponseExtension
tags:
- phpstan.broker.dynamicFunctionReturnTypeExtension
-
class: NunoMaduro\Larastan\ReturnTypes\Helpers\RequestExtension
tags:
- phpstan.broker.dynamicFunctionReturnTypeExtension
-
class: NunoMaduro\Larastan\ReturnTypes\Helpers\RedirectExtension
tags:
- phpstan.broker.dynamicFunctionReturnTypeExtension
-
class: NunoMaduro\Larastan\ReturnTypes\Helpers\UrlExtension
tags:
- phpstan.broker.dynamicFunctionReturnTypeExtension
-
class: NunoMaduro\Larastan\ReturnTypes\Helpers\ViewExtension
tags:
- phpstan.broker.dynamicFunctionReturnTypeExtension
-
class: NunoMaduro\Larastan\ReturnTypes\Helpers\TransExtension
tags:
- phpstan.broker.dynamicFunctionReturnTypeExtension