Files
pest/phpstan.neon
2022-12-07 09:32:27 +00:00

57 lines
1.9 KiB
Plaintext

includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/ergebnis/phpstan-rules/rules.neon
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
- vendor/symplify/phpstan-rules/config/services/services.neon
- vendor/symplify/phpstan-rules/config/packages/cognitive-complexity/cognitive-complexity-services.neon
parameters:
level: max
paths:
- src
checkMissingIterableValueType: true
reportUnmatchedIgnoredErrors: true
ignoreErrors:
- '#Cannot instantiate interface PHPUnit\\Util\\Exception#'
- "#with a nullable type declaration#"
- "#type mixed is not subtype of native#"
- "#is not allowed to extend#"
- "# with null as default value#"
- "#has parameter \\$closure with default value.#"
- "#has parameter \\$description with default value.#"
- "#Method Pest\\\\Support\\\\Reflection::getParameterClassName\\(\\) has a nullable return type declaration.#"
services:
-
class: Symplify\PHPStanRules\Rules\Explicit\PropertyTypeDeclarationSeaLevelRule
tags: [phpstan.rules.rule]
arguments:
minimalLevel: 1.00
-
class: Symplify\PHPStanRules\Rules\Explicit\ParamTypeDeclarationSeaLevelRule
tags: [phpstan.rules.rule]
arguments:
minimalLevel: 0.96
-
class: Symplify\PHPStanRules\Rules\Explicit\ReturnTypeDeclarationSeaLevelRule
tags: [phpstan.rules.rule]
arguments:
minimalLevel: 0.97
-
class: Symplify\PHPStanRules\Collector\FunctionLike\ParamTypeSeaLevelCollector
tags: [phpstan.collector]
-
class: Symplify\PHPStanRules\Collector\FunctionLike\ReturnTypeSeaLevelCollector
tags: [phpstan.collector]
-
class: Symplify\PHPStanRules\Collector\ClassLike\PropertyTypeSeaLevelCollector
tags: [phpstan.collector]