-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphpstan.neon
49 lines (39 loc) · 1.54 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
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.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/slam/phpstan-extensions/conf/symfony-rules.neon
#- vendor/shipmonk/dead-code-detector/rules.neon
rules:
- TheCodingMachine\PHPStan\Rules\Exceptions\DoNotThrowExceptionBaseClassRule
- TheCodingMachine\PHPStan\Rules\Exceptions\ThrowMustBundlePreviousExceptionRule
parameters:
level: 6
featureToggles:
alwaysTrueAlwaysReported: false
detectDeadTypeInMultiCatch: false
disableCheckMissingIterableValueType: false
paths:
- %currentWorkingDirectory%/contao
- %currentWorkingDirectory%/src
excludePaths:
- %currentWorkingDirectory%/src/Import/Validator
- %currentWorkingDirectory%/src/EventListener/Import
dynamicConstantNames:
- BE_USER_LOGGED_IN
universalObjectCratesClasses:
- Contao\BackendUser
- Contao\ContentElement
- Contao\Database\Result
- Contao\Model
- Contao\Module
- Contao\Template
- Contao\User
ignoreErrors:
- identifier: missingType.iterableValue
# Ignore the undefined property error to still allow Contao 4.13 support
- message: '#Access to an undefined property Contao\\DataContainer::\$activeRecord\.#'
treatPhpDocTypesAsCertain: false
rememberPossiblyImpureFunctionValues: false