forked from nelmio/NelmioApiDocBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.dist.neon
34 lines (33 loc) · 1.25 KB
/
phpstan.dist.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
includes:
- phpstan-baseline.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-symfony/rules.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
level: 6
paths:
- src
- tests
excludePaths:
- tests/Functional/Entity/*
- tests/Functional/EntityExcluded/*
- tests/Functional/Controller/*
- tests/ModelDescriber/Annotations/Fixture/*
dynamicConstantNames:
- Symfony\Component\HttpKernel\Kernel::VERSION
- Symfony\Component\HttpKernel\Kernel::VERSION_ID
- Symfony\Component\HttpKernel\Kernel::MAJOR_VERSION
- Symfony\Component\HttpKernel\Kernel::MINOR_VERSION
- Symfony\Component\HttpKernel\Kernel::RELEASE_VERSION
symfony:
consoleApplicationLoader: tests/console-application.php
strictRules:
noVariableVariables: false # Neccessary for swagger-php integration
universalObjectCratesClasses:
- OpenApi\Context
treatPhpDocTypesAsCertain: false
checkGenericClassInNonGenericObjectType: false
ignoreErrors:
- '#^Property class@anonymous/tests/.* has no type specified.$#'