forked from Roave/BetterReflection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
29 lines (26 loc) · 1.42 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
parameters:
level: 5
paths:
- src
excludes_analyse:
# references huge array PhpStormStubsMap
# can be removed once updated to PHPStan 0.12.26
- src/SourceLocator/SourceStubber/PhpStormStubsSourceStubber.php
ignoreErrors:
-
message: '#Access to an undefined property PhpParser\\Node\\Param::\$isOptional#'
paths:
- %currentWorkingDirectory%/src/Reflection/ReflectionFunctionAbstract.php
- %currentWorkingDirectory%/src/Reflection/ReflectionParameter.php
# Impossible to define type hint for anonymous class
-
message: '#Call to an undefined method PhpParser\\NodeVisitorAbstract::(clearNodes|getClassNodes|getFunctionNodes|getConstantNodes)\(\)#'
path: %currentWorkingDirectory%/src/SourceLocator/SourceStubber/PhpStormStubsSourceStubber.php
-
message: '#Call to an undefined method PhpParser\\NodeVisitorAbstract::(getNode|setConstantName)\(\)#'
path: %currentWorkingDirectory%/src/SourceLocator/Type/AutoloadSourceLocator.php
# ClassLoader is a pseudo-callable
-
message: "#^Parameter \\#1 \\$autoload_function of function spl_autoload_register expects callable\\(string\\)\\: void, \\$this\\(Roave\\\\BetterReflection\\\\Util\\\\Autoload\\\\ClassLoader\\) given\\.$#"
count: 1
path: src/Util/Autoload/ClassLoader.php