-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
36 lines (29 loc) · 1.01 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
includes:
- 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
rules:
- TheCodingMachine\PHPStan\Rules\Exceptions\DoNotThrowExceptionBaseClassRule
- TheCodingMachine\PHPStan\Rules\Exceptions\ThrowMustBundlePreviousExceptionRule
parameters:
level: 5
paths:
- %currentWorkingDirectory%/contao
- %currentWorkingDirectory%/src
dynamicConstantNames:
- BE_USER_LOGGED_IN
featureToggles:
alwaysTrueAlwaysReported: false
detectDeadTypeInMultiCatch: false
universalObjectCratesClasses:
- Contao\BackendUser
- Contao\ContentElement
- Contao\Database\Result
- Contao\Model
- Contao\Module
- Contao\Template
- Contao\User
treatPhpDocTypesAsCertain: false
rememberPossiblyImpureFunctionValues: false