From 4c5098941af0e1a667164b9421056023a449bdd9 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Fri, 2 Jun 2023 19:15:14 +0200 Subject: [PATCH] Add the phpstan PHPUnit plugin --- composer.json | 3 ++- phpstan.neon | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 96c027d..cf05b91 100644 --- a/composer.json +++ b/composer.json @@ -9,8 +9,9 @@ }, "require-dev": { "doctrine/coding-standard": "^9", - "phpunit/phpunit": "^7.5|^8.5|^9.5", "phpstan/phpstan": "1.4.10 || 1.10.15", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^7.5|^8.5|^9.5", "psr/log": "^1|^2|^3", "vimeo/psalm": "4.30.0 || 5.12.0" }, diff --git a/phpstan.neon b/phpstan.neon index 526e3bb..244e55d 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -3,3 +3,7 @@ parameters: paths: - lib - tests + +includes: + - vendor/phpstan/phpstan-phpunit/extension.neon + - vendor/phpstan/phpstan-phpunit/rules.neon