forked from contao/contao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
43 lines (34 loc) · 1.6 KB
/
phpstan.neon.dist
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
includes:
- tools/phpstan/vendor/phpstan/phpstan-phpunit/extension.neon
- tools/phpstan/vendor/phpstan/phpstan-phpunit/rules.neon
- tools/phpstan/vendor/phpstan/phpstan-symfony/extension.neon
- tools/phpstan/vendor/phpstan/phpstan-symfony/rules.neon
rules:
- SlamPhpStan\SymfonyFilesystemRule
- SlamPhpStan\SymfonyProcessRule
- TheCodingMachine\PHPStan\Rules\Exceptions\ThrowMustBundlePreviousExceptionRule
parameters:
level: 5
paths:
- core-bundle/src
- core-bundle/tests
dynamicConstantNames:
- BE_USER_LOGGED_IN
universalObjectCratesClasses:
- Contao\Model
- Contao\Template
excludes_analyse:
- %currentWorkingDirectory%/core-bundle/src/Resources/*
- %currentWorkingDirectory%/core-bundle/tests/Fixtures/*
- %currentWorkingDirectory%/core-bundle/tests/Functional/app/*
- %currentWorkingDirectory%/core-bundle/tests/Functional/var/*
ignoreErrors:
# Ignore the forward compatible phpDoc comment of the PictureFactoryInterface
-
message: '#PHPDoc tag @param references unknown parameter: \$options#'
path: %currentWorkingDirectory%/core-bundle/src/Image/PictureFactoryInterface.php
# Ignore the wrong return type hint of the UrlGeneratorInterface::generate() method
- '#Method Contao\\CoreBundle\\Picker\\AbstractPickerProvider::generateUrl\(\) never returns null so it can be removed from the return typehint\.#'
treatPhpDocTypesAsCertain: false
checkGenericClassInNonGenericObjectType: false
inferPrivatePropertyTypeFromConstructor: true