-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathphpstan.neon
More file actions
21 lines (19 loc) · 818 Bytes
/
phpstan.neon
File metadata and controls
21 lines (19 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
includes:
- phpstan-baseline.neon
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-symfony/rules.neon
parameters:
level: 8
reportUnmatchedIgnoredErrors: false
paths:
- 'src/TwigExtra/src'
- 'src/TwigHooks/src'
ignoreErrors:
# Symfony Config component relies on magic methods in NodeBuilder.
# PHPStan struggles to resolve these methods on the builder class when complex generics are involved,
# resulting in false positive "unknown class" errors.
-
message: '#Call to method \w+Node\(\) on an unknown class .*NodeBuilder.*#'
paths:
- 'src/TwigHooks/src/DependencyInjection/Configuration.php'
- 'src/TwigExtra/src/Symfony/DependencyInjection/Configuration.php'