-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathphpstan.neon.dist
39 lines (38 loc) · 1.97 KB
/
phpstan.neon.dist
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
parameters:
level: 6
paths:
- src
- tests
excludePaths:
- src/Kernel.php
- tests/bootstrap.php
- src/HttpClientMock/CallbackHandler.php # needed because of unknown classes when installed with monolog 2.x
- src/HttpClientMock/LegacyCallbackHandler.php # needed because of unknown classes when installed with monolog 2.x
ignoreErrors:
- '#Constructor in .* has parameter .* with default value#'
- '#In method "Brainbits\\FunctionalTestHelpers\\Snapshot\\IsXml::.*", caught "Throwable" must be rethrown. Either catch a more specific exception or add a "throw" clause in the "catch" block to propagate the exception.#'
- '#In method "Brainbits\\FunctionalTestHelpers\\Tests\\Uuid\\UuidTraitTest::.*", caught "Throwable" must be rethrown. Either catch a more specific exception or add a "throw" clause in the "catch" block to propagate the exception.#'
- '#Safe\\DateTimeImmutable#'
- '#SchemaBuilder::foo\(\)#'
ergebnis:
noNullableReturnTypeDeclaration:
enabled: false
noParameterWithNullableTypeDeclaration:
enabled: false
noParameterWithNullDefaultValue:
enabled: false
noExtends:
classesAllowedToBeExtended:
- Archive7z\Archive7z
- Monolog\Handler\AbstractProcessingHandler
- PHPUnit\Framework\Constraint\Constraint
- RuntimeException
includes:
- %rootDir%/../../brainbits/phpstan-rules/rules.neon
- %rootDir%/../../ergebnis/phpstan-rules/rules.neon
- %rootDir%/../../jangregor/phpstan-prophecy/extension.neon
- %rootDir%/../../phpstan/phpstan-phpunit/extension.neon
- %rootDir%/../../phpstan/phpstan-phpunit/rules.neon
- %rootDir%/../../phpstan/phpstan-symfony/extension.neon
- %rootDir%/../../thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon
- %rootDir%/../../thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon