From 6d3cc7d1ebe6e578ae1603550f2a1e61a161ed64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20R=C3=BCfenacht?= Date: Thu, 18 Jun 2026 14:57:23 +0200 Subject: [PATCH 1/2] test: do not treat deprecation warnings as test stopping messages As this project is rather old and outdated by now, it will probably always throw deprecation warnings. This commit will ignore those messages when running unit tests --- phpunit.xml.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 01fb155..e8b816e 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -9,7 +9,7 @@ - + From 221926fa686eccf1cd11e93ccada98cd3994de5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20R=C3=BCfenacht?= Date: Thu, 18 Jun 2026 14:57:51 +0200 Subject: [PATCH 2/2] fix(phpstan): reconfigure phpstan to use autoload file in vendor --- composer.json | 3 ++- phpstan.neon | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index a2c8766..a9781ee 100644 --- a/composer.json +++ b/composer.json @@ -45,7 +45,8 @@ "symfony/webpack-encore-bundle": "^1.13", "symfony/security-core": "^6.0", "symfony/security-bundle": "^6.0", - "phpstan/phpstan": "^1.5" + "phpstan/phpstan": "^1.5", + "phpstan/phpstan-phpunit": "^1.0" }, "autoload": { "psr-4": { diff --git a/phpstan.neon b/phpstan.neon index 328bcdb..a3ffc0d 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,7 +1,10 @@ +includes: + - vendor/phpstan/phpstan-phpunit/extension.neon + parameters: level: 1 paths: - src - tests bootstrapFiles: - - vendor/bin/.phpunit/phpunit-9.5-0/vendor/autoload.php + - vendor/autoload.php