Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit cabb15b

Browse files
misc(https://gitlab.com/fusonic/devops/php/php-cop/-/issues/52): ensure type safety via phpstan
1 parent 8197d0d commit cabb15b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

composer.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fusonic/http-kernel-extensions",
33
"license": "MIT",
4-
"version": "5.3.2",
4+
"version": "5.3.3",
55
"description": "Symfony HttpKernel Component Extensions.",
66
"type": "library",
77
"authors": [
@@ -38,7 +38,8 @@
3838
"symfony/cache": "^5.4|^6.0",
3939
"phpstan/phpstan-strict-rules": "^1.1",
4040
"phpstan/phpstan-symfony": "^1.1",
41-
"symplify/phpstan-rules": "^11.1"
41+
"symplify/phpstan-rules": "^11.1",
42+
"tomasvotruba/type-coverage": "^0.0.9"
4243
},
4344
"scripts": {
4445
"phpstan": "XDEBUG_MODE=off php -d memory_limit=2048M vendor/bin/phpstan analyse",

phpstan.neon

+7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ parameters:
55
- tests
66
checkMissingIterableValueType: false
77

8+
type_coverage:
9+
return_type: 100
10+
param_type: 100
11+
property_type: 100
12+
print_suggestions: false
13+
814
includes:
915
- vendor/phpstan/phpstan-phpunit/extension.neon
1016
- vendor/phpstan/phpstan-strict-rules/rules.neon
1117
- vendor/phpstan/phpstan-symfony/extension.neon
18+
- vendor/tomasvotruba/type-coverage/config/extension.neon

0 commit comments

Comments
 (0)