-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathphpstan.neon
23 lines (21 loc) · 1.03 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
includes:
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
level: 5
reportUnmatchedIgnoredErrors: false
inferPrivatePropertyTypeFromConstructor: true
paths:
- %currentWorkingDirectory%
ignoreErrors:
-
identifier: missingType.generics
- '#Class Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder constructor invoked with 0 parameters, 1-3 required#'
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder::root\(\)#'
- '#Call to function method_exists\(\) with .*?TreeBuilder.*? and .*?getRootNode.*? will always evaluate to true#'
- '#Comparison operation ".*?" between \d+ and \d+ is always (true|false)#'
- '#Else branch is unreachable because ternary operator condition is always true#'
excludePaths:
- %currentWorkingDirectory%/.github/*
- %currentWorkingDirectory%/.idea/*
- %currentWorkingDirectory%/vendor/*