Improve PHPStan coverage.

This commit is contained in:
Greyscale 2021-01-22 07:29:54 +01:00
parent cf266e1f96
commit fbc0a70634
3 changed files with 20 additions and 1 deletions

View file

@ -103,7 +103,7 @@
],
"pre-push": [
"vendor/bin/php-cs-fixer fix .",
"make test"
"vendor/bin/phpstan analyse"
],
"post-merge": "composer install --ignore-platform-reqs"
}

17
phpstan.neon.dist Normal file
View 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
View file

@ -0,0 +1,2 @@
<?php
define("APP_ROOT", __DIR__);