-
-
Notifications
You must be signed in to change notification settings - Fork 63
/
phpstan.neon
52 lines (41 loc) · 1.81 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
includes:
- phpstan-baseline.neon
- utils/phpstan/config/typo3-rector.neon
parameters:
# see https://phpstan.org/user-guide/output-format#opening-file-in-an-editor
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
level: 8
paths:
- bin
- config
- rector.php
- rules
- src
- tests
- utils
excludePaths:
- "*/Expected/*"
- '*tests/*/Fixture/*'
- '*tests/*/Assertions/*'
- '*tests/*/Source/*'
- '*tests/Source/*'
- 'utils/generator/templates/*'
scanDirectories:
# static reflection
- stubs
# see https://github.com/rectorphp/rector/issues/3490#issue-634342324
featureToggles:
disableRuntimeReflectionProvider: true
bootstrapFiles:
- tests/bootstrap-phpstan.php
inferPrivatePropertyTypeFromConstructor: true
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# package symplify/rule-doc-generator is only installed in CI
- "#\\:\\:getRuleDefinition\\(\\) has invalid return type Symplify\\\\RuleDocGenerator\\\\ValueObject\\\\RuleDefinition\\.$#"
- "#^Instantiated class Symplify\\\\RuleDocGenerator\\\\ValueObject\\\\CodeSample\\\\CodeSample not found\\.$#"
- "#^Instantiated class Symplify\\\\RuleDocGenerator\\\\ValueObject\\\\RuleDefinition not found\\.$#"
# waits for Rector and PHPStan to share same php-parser, probably with PHPStan 1.0
- '#PhpParser\\Node\\Arg\|PhpParser\\Node\\VariadicPlaceholder#'
- '#^Call to method needs\(\) on an unknown class Illuminate\\Contracts\\Container\\ContextualBindingBuilder.$#'
- '#^Parameter \#1 \$node \(PhpParser\\Node\\Stmt\\Return_\) of method Ssch\\TYPO3Rector\\TYPO310\\v3\\RemoveExcludeOnTransOrigPointerFieldRector::refactor\(\)#'