forked from contao/contao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
38 lines (30 loc) · 1.62 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
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
- tools/phpstan/vendor/slam/phpstan-extensions/conf/symfony-rules.neon
rules:
- TheCodingMachine\PHPStan\Rules\Exceptions\DoNotThrowExceptionBaseClassRule
- TheCodingMachine\PHPStan\Rules\Exceptions\ThrowMustBundlePreviousExceptionRule
parameters:
level: 6
paths:
- %currentWorkingDirectory%/core-bundle/src
- %currentWorkingDirectory%/core-bundle/tests
universalObjectCratesClasses:
- Contao\Model
- Contao\Template
excludePaths:
- %currentWorkingDirectory%/core-bundle/tests/Fixtures/*
- %currentWorkingDirectory%/core-bundle/tests/Functional/app/*
- %currentWorkingDirectory%/core-bundle/tests/Functional/var/*
ignoreErrors:
-
# Ignore the unexpected type hint required for the tagged_locator
message: '#type array<Symfony\\Component\\HttpKernel\\Fragment\\FragmentRendererInterface> is incompatible with native type Psr\\Container\\ContainerInterface#'
path: %currentWorkingDirectory%/core-bundle/src/Fragment/FragmentHandler.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