-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathphpstan.neon
32 lines (24 loc) · 1.29 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
parameters:
level: 8
errorFormat: symplify
paths:
- src
- config
- tests
excludePaths:
- '*/tests/**/Source/*'
- '*/tests/**/Fixture/*'
ignoreErrors:
# partial enum
- '#Method Symplify\\CodingStandard\\TokenRunner\\Analyzer\\FixerAnalyzer\\BlockFinder\:\:(getBlockTypeByContent|getBlockTypeByToken)\(\) never returns \d+ so it can be removed from the return type#'
-
path: tests/bootstrap.php
message: '#Instantiated class PHP_CodeSniffer\\Util\\Tokens not found#'
- '#Constant T_OPEN_CURLY_BRACKET|T_START_NOWDOC not found#'
- '#Method Symplify\\CodingStandard\\TokenRunner\\Traverser\\ArrayBlockInfoFinder\:\:reverseTokens\(\) should return array<PhpCsFixer\\Tokenizer\\Token> but returns array<int, PhpCsFixer\\Tokenizer\\Token\|null>#'
# unused generics
- '#Class (.*?) implements generic interface PhpCsFixer\\Fixer\\ConfigurableFixerInterface but does not specify its types\: TFixerInputConfig, TFixerComputedConfig#'
# conditional check to allow various php versions
-
message: '#Comparison operation ">\=" between int<80200, 80499> and (.*?) is always true#'
path: src/TokenAnalyzer/DocblockRelatedParamNamesResolver.php