forked from contao/contao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
58 lines (47 loc) · 2.58 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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: 6
paths:
- %currentWorkingDirectory%/core-bundle/src
- %currentWorkingDirectory%/core-bundle/tests
dynamicConstantNames:
- BE_USER_LOGGED_IN
universalObjectCratesClasses:
- Contao\Model
- Contao\Template
excludePaths:
- %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 forward compatible phpDoc comment of the Symfony token classes
message: '#expects Symfony\\Component\\Security\\Core\\User\\UserInterface, string given\.#'
paths:
- %currentWorkingDirectory%/core-bundle/src/Security/Authentication/ContaoLoginAuthenticationListener.php
- %currentWorkingDirectory%/core-bundle/src/Security/Authentication/Token/FrontendPreviewToken.php
-
# Ignore missing return types in interfaces that we can only change in Contao 5
message: '#has no return type specified#'
paths:
- %currentWorkingDirectory%/core-bundle/src/Config/Dumper/DumperInterface.php
- %currentWorkingDirectory%/core-bundle/src/ContaoFrameworkInterface.php
- %currentWorkingDirectory%/core-bundle/src/Framework/ContaoFrameworkInterface.php
- %currentWorkingDirectory%/core-bundle/src/Framework/FrameworkAwareInterface.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 type\.#'
treatPhpDocTypesAsCertain: false
checkMissingIterableValueType: false