forked from rectorphp/rector-symfony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
38 lines (28 loc) · 1.21 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
parameters:
level: 8
reportUnmatchedIgnoredErrors: false
paths:
- config
- src
- tests
- rules
- rules-tests
scanDirectories:
- stubs
excludePaths:
- */Source/*
- */Fixture/*
- */Fixture*/*
checkGenericClassInNonGenericObjectType: false
ignoreErrors:
# pointless check
- '#expects class-string, string given#'
# known array
-
message: '#Parameter \#2 \$name of method Rector\\Doctrine\\NodeAnalyzer\\AttrinationFinder\:\:hasByOne\(\) expects class\-string, string given#'
path: rules/CodeQuality/Rector/ClassMethod/ResponseReturnTypeControllerActionRector.php
- '#Calling PHPStan\\Reflection\\Php\\PhpParameterReflection\:\:getName\(\) is not covered by backward compatibility promise\. The method might change in a minor PHPStan version#'
# false positive
- '#Access to an undefined property Rector\\Core\\Contract\\PhpParser\\Node\\StmtsAwareInterface\:\:\$stmts#'
- '#but class PhpParser\\Node\\Stmt\\Expression is not generic#'
- '#Access to an undefined property Rector\\Contract\\PhpParser\\Node\\StmtsAwareInterface\:\:\$stmts#'