mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
chore: adds type coverage at 96%
This commit is contained in:
@ -52,7 +52,8 @@
|
|||||||
"require-dev": {
|
"require-dev": {
|
||||||
"pestphp/pest-dev-tools": "^2.0.0",
|
"pestphp/pest-dev-tools": "^2.0.0",
|
||||||
"rector/rector": "^0.15.0",
|
"rector/rector": "^0.15.0",
|
||||||
"symfony/process": "^6.2.0"
|
"symfony/process": "^6.2.0",
|
||||||
|
"symplify/phpstan-rules": "^11.1.17"
|
||||||
},
|
},
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
|
|||||||
32
phpstan.neon
32
phpstan.neon
@ -2,6 +2,9 @@ includes:
|
|||||||
- vendor/phpstan/phpstan-strict-rules/rules.neon
|
- vendor/phpstan/phpstan-strict-rules/rules.neon
|
||||||
- vendor/ergebnis/phpstan-rules/rules.neon
|
- vendor/ergebnis/phpstan-rules/rules.neon
|
||||||
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-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:
|
parameters:
|
||||||
level: max
|
level: max
|
||||||
@ -21,3 +24,32 @@ parameters:
|
|||||||
- "#has parameter \\$closure with default value.#"
|
- "#has parameter \\$closure with default value.#"
|
||||||
- "#has parameter \\$description with default value.#"
|
- "#has parameter \\$description with default value.#"
|
||||||
- "#Method Pest\\\\Support\\\\Reflection::getParameterClassName\\(\\) has a nullable return type declaration.#"
|
- "#Method Pest\\\\Support\\\\Reflection::getParameterClassName\\(\\) has a nullable return type declaration.#"
|
||||||
|
services:
|
||||||
|
-
|
||||||
|
class: Symplify\PHPStanRules\Rules\Explicit\PropertyTypeDeclarationSeaLevelRule
|
||||||
|
tags: [phpstan.rules.rule]
|
||||||
|
arguments:
|
||||||
|
minimalLevel: 0.99
|
||||||
|
|
||||||
|
-
|
||||||
|
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.96
|
||||||
|
|
||||||
|
-
|
||||||
|
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]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user