Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tomasvotruba/type-coverage to dev tools #993

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .dev-tools/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
"type": "project",
"require": {
"php": "^8.3",
"ergebnis/composer-normalize": "^2.43",
"infection/infection": "^0.29.6",
"ergebnis/composer-normalize": "^2.44",
"infection/infection": "^0.29.7",
"kubawerlos/composer-smaller-lock": "^1.0.1",
"kubawerlos/php-cs-fixer-config": "^4.0",
"mi-schi/phpmd-extension": "^4.3",
"phpmd/phpmd": "^2.15",
"phpstan/extension-installer": "^1.4.3",
"phpstan/phpstan": "^1.12.5",
"phpstan/phpstan": "^1.12.6",
"phpstan/phpstan-phpunit": "^1.4",
"phpstan/phpstan-strict-rules": "^1.6.1",
"shipmonk/composer-dependency-analyser": "^1.7",
"squizlabs/php_codesniffer": "^3.10.3"
"squizlabs/php_codesniffer": "^3.10.3",
"tomasvotruba/type-coverage": "^1.0"
},
"autoload": {
"psr-4": {
Expand Down
161 changes: 117 additions & 44 deletions .dev-tools/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions .dev-tools/phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

includes:
- ./vendor/phpstan/phpstan/conf/bleedingEdge.neon

parameters:
bootstrapFiles:
- ../vendor/autoload.php
Expand All @@ -10,6 +14,9 @@ parameters:
stubFiles:
- ./sca.stub
treatPhpDocTypesAsCertain: false

includes:
- ./vendor/phpstan/phpstan/conf/bleedingEdge.neon
type_coverage:
declare: 100
constant: 0
param: 100
property: 100
return: 100