forked from DamienHarper/auditor-bundle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
21 lines (18 loc) · 1.07 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
includes:
- vendor/phpstan/phpstan-doctrine/extension.neon
- vendor/phpstan/phpstan-doctrine/rules.neon
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
excludes_analyse:
- '%currentWorkingDirectory%/src/DependencyInjection/Configuration.php'
ignoreErrors:
# false positives
- '~Call to an undefined method Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface\:\:getRoles\(\)\.~'
- '~Call to method getSource\(\) on an unknown class Symfony\\Component\\Security\\Core\\Role\\SwitchUserRole\.~'
- '~Class Symfony\\Component\\Security\\Core\\Role\\SwitchUserRole not found\.~'
# required for Symfony 4.4 compatibility
- '~Method DH\\AuditorBundle\\Routing\\RoutingAnnotationLoader\:\:load\(\) has parameter \$type with no typehint specified.~'
- '~Method DH\\AuditorBundle\\Routing\\RoutingAnnotationLoader\:\:supports\(\) has parameter \$type with no typehint specified.~'