/
phpstan.neon
32 lines (26 loc) · 1.02 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
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
parameters:
phpVersion: 80100
level: 6
checkGenericClassInNonGenericObjectType: false
paths:
- src
- test/benchmark
- test/unit
excludePaths:
analyse:
- test/unit/Fixture/*
analyseAndScan:
- test/unit/Fixture/InvalidParents.php
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