-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
47 lines (42 loc) · 1.29 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
includes:
- vendor/lendable/phpunit-extensions/phpstan/rules.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- phar://vendor/phpstan/phpstan/phpstan.phar/conf/bleedingEdge.neon
rules:
- Ergebnis\PHPStan\Rules\Expressions\NoCompactRule
- Ergebnis\PHPStan\Rules\Expressions\NoErrorSuppressionRule
- Ergebnis\PHPStan\Rules\Expressions\NoEvalRule
- Ergebnis\PHPStan\Rules\Files\DeclareStrictTypesRule
services:
-
class: Ergebnis\PHPStan\Rules\Classes\FinalRule
arguments:
allowAbstractClasses: true
classesNotRequiredToBeAbstractOrFinal: []
tags:
- phpstan.rules.rule
-
class: Ergebnis\PHPStan\Rules\Classes\NoExtendsRule
arguments:
classesAllowedToBeExtended:
- Exception
- RuntimeException
- Error
- LogicException
- InvalidArgumentException
tags:
- phpstan.rules.rule
parameters:
level: max
tmpDir: tmp/phpstan
checkMissingIterableValueType: true
treatPhpDocTypesAsCertain: false
exceptions:
check:
missingCheckedExceptionInThrows: true
ignoreErrors:
- message: '#.+throws checked exception.+#'
path: 'tests/*'