-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
35 lines (35 loc) · 1.62 KB
/
phpstan.neon
File metadata and controls
35 lines (35 loc) · 1.62 KB
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
parameters:
level: 9
paths:
- src
excludePaths:
- ecs.php
- src/Generator
- src/FrameworkBridge/Symfony/DependencyInjection/OpenClassroomsServiceProxyExtension.php
- src/FrameworkBridge/Symfony/DependencyInjection/Configuration.php
ignoreErrors:
- '/Constructor in .+ has parameter .+ with default value./'
- '/Method .+ has parameter .+ with null as default value./'
- '/Method .+ has a nullable return type declaration./'
- '/Method .+ has parameter .+ with a nullable type declaration./'
- '/Language construct isset\(\) should not be used./'
- '/.+ is not allowed to extend ".+"./'
- '/Method .+OpenClassroomsServiceProxyBundle.+ has a parameter \$container/'
- '/Method .+ServiceProxy.+ has a parameter \$container/'
- '/Call to static method Webmozart\\Assert\\Assert::allIsInstanceOf\(\) with/'
- '/Function compact\(\) should not be used/'
- '/In method .+, caught "Throwable" must be rethrown. Either catch a more specific exception or add a "throw" clause in the "catch" block to propagate the exception./'
- '/Class OpenClassrooms\\ServiceProxy\\Model\\Event is neither abstract nor final./'
exceptions:
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
uncheckedExceptionClasses:
- RuntimeException
- LogicException
- JsonException
- PHPUnit\Framework\Exception
- ReflectionException
- Psr\Cache\CacheException
strictRules:
booleansInConditions: false