From 6871976327103918caf74965738034d472cb1a4e Mon Sep 17 00:00:00 2001 From: Jannik Zschiesche Date: Tue, 4 Jun 2024 18:39:35 +0200 Subject: [PATCH] Add commented code about PHPStan usage with PHPUnit --- CHANGELOG.md | 6 ++++++ _init/library/phpstan.neon | 8 +++++++- _init/symfony/phpstan.neon | 8 +++++++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04009c5..2f87d09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +1.3.2 +===== + +* (improvements) Add commented code about PHPStan usage with PHPUnit. + + 1.3.1 ===== diff --git a/_init/library/phpstan.neon b/_init/library/phpstan.neon index 8ca1552..cd0577a 100644 --- a/_init/library/phpstan.neon +++ b/_init/library/phpstan.neon @@ -1,2 +1,8 @@ includes: - - vendor/21torr/janus/phpstan/lib.neon + - vendor/21torr/janus/phpstan/lib.neon + +# If you use simple-phpunit, you need to uncomment the following line. +# Always make sure to first run simple-phpunit and then PHPStan. +# parameters: +# bootstrapFiles: +# - vendor/bin/.phpunit/phpunit/vendor/autoload.php diff --git a/_init/symfony/phpstan.neon b/_init/symfony/phpstan.neon index 8d9f71b..bd86715 100644 --- a/_init/symfony/phpstan.neon +++ b/_init/symfony/phpstan.neon @@ -1,2 +1,8 @@ includes: - - vendor/21torr/janus/phpstan/symfony.neon + - vendor/21torr/janus/phpstan/symfony.neon + +# If you use simple-phpunit, you need to uncomment the following line. +# Always make sure to first run simple-phpunit and then PHPStan. +# parameters: +# bootstrapFiles: +# - vendor/bin/.phpunit/phpunit/vendor/autoload.php