Improve PHPStan coverage.
This commit is contained in:
parent
cf266e1f96
commit
fbc0a70634
3 changed files with 20 additions and 1 deletions
|
|
@ -103,7 +103,7 @@
|
||||||
],
|
],
|
||||||
"pre-push": [
|
"pre-push": [
|
||||||
"vendor/bin/php-cs-fixer fix .",
|
"vendor/bin/php-cs-fixer fix .",
|
||||||
"make test"
|
"vendor/bin/phpstan analyse"
|
||||||
],
|
],
|
||||||
"post-merge": "composer install --ignore-platform-reqs"
|
"post-merge": "composer install --ignore-platform-reqs"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
17
phpstan.neon.dist
Normal file
17
phpstan.neon.dist
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
includes:
|
||||||
|
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
|
||||||
|
- vendor/phpstan/phpstan-symfony/extension.neon
|
||||||
|
- vendor/phpstan/phpstan-phpunit/extension.neon
|
||||||
|
- vendor/phpstan/phpstan-phpunit/rules.neon
|
||||||
|
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
|
||||||
|
- vendor/slam/phpstan-extensions/conf/slam-rules.neon
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
level: 1
|
||||||
|
bootstrapFiles:
|
||||||
|
- teststrap.php
|
||||||
|
paths:
|
||||||
|
- bin/
|
||||||
|
- src/
|
||||||
|
- tests/
|
||||||
|
|
||||||
2
teststrap.php
Normal file
2
teststrap.php
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
<?php
|
||||||
|
define("APP_ROOT", __DIR__);
|
||||||
Loading…
Reference in a new issue