From dd5d6f2a1fc9b80ca827392cb270bd6e610b196b Mon Sep 17 00:00:00 2001 From: Jannik Zschiesche Date: Mon, 9 Mar 2026 15:49:49 +0100 Subject: [PATCH] Improve PhpStan Symfony 8 support --- CHANGELOG.md | 7 +++++++ composer.json | 4 ++-- phpstan/symfony.neon | 4 ---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 488421a..3aa4110 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +2.1.0 +===== + +* (feature) Require Symfony 8+ +* (improvement) Remove invalid import directory for Symfony 8. + + 2.0.3 ===== diff --git a/composer.json b/composer.json index b646a5c..68dff98 100644 --- a/composer.json +++ b/composer.json @@ -14,8 +14,8 @@ "php": ">= 8.4", "composer-plugin-api": "^2.6", "21torr/cli": "^1.2.3", - "symfony/console": "^7.4 || ^8.0", - "symfony/process": "^7.4 || ^8.0" + "symfony/console": "^8.0", + "symfony/process": "^8.0" }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.3", diff --git a/phpstan/symfony.neon b/phpstan/symfony.neon index 10330eb..bd72871 100644 --- a/phpstan/symfony.neon +++ b/phpstan/symfony.neon @@ -15,10 +15,6 @@ parameters: identifier: return.type path: %currentWorkingDirectory%/src/Storyblok/Component/*Story.php - # If you're using PHP config files for Symfony 5.3+, you also need this for auto-loading of `Symfony\Config` - scanDirectories: - - %currentWorkingDirectory%/var/cache/dev/Symfony/Config - # If you're using PHP config files (including the ones under packages/*.php) for Symfony 5.3+, # you need this to load the helper functions (i.e. service(), env()): scanFiles: