-
Notifications
You must be signed in to change notification settings - Fork 130
/
phpstan.neon
38 lines (31 loc) · 1.15 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
includes:
- tools/vendor/phpstan/phpstan-phpunit/extension.neon
- tools/vendor/phpstan/phpstan-phpunit/rules.neon
parameters:
phpVersion: 80100
level: 6
paths:
- src
- test/benchmark
- test/unit
# Force the right PhpParser
scanDirectories:
- vendor/nikic/php-parser
excludePaths:
analyse:
- test/unit/Fixture/*
analyseAndScan:
- test/unit/Fixture/InvalidParents.php
- tools/vendor/*
bootstrapFiles:
- phar://%currentWorkingDirectory%/test/unit/Fixture/autoload.phar/vendor/autoload.php
ignoreErrors:
# Impossible to define type hint for anonymous class
-
message: '#Call to an undefined method PhpParser\\NodeVisitorAbstract::(getNode|setConstantName)\(\)#'
path: src/SourceLocator/Type/AutoloadSourceLocator.php
-
message: '#Method Roave\\BetterReflection\\Reflection\\ReflectionClass::computeModifiers\(\) never returns \d+ so it can be removed from the return type#'
path: src/Reflection/ReflectionClass.php
-
identifier: missingType.generics