From 5ec435cbe72af6314008d391b47d96fccca8fb76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Fr=C3=A8rejean?= Date: Tue, 2 Jun 2026 15:00:10 +0200 Subject: [PATCH 1/2] fix: allow Symfony 8.1 by widening pinned constraints to ^8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The require block pinned every Symfony component to 8.0.*, blocking installation on Symfony 8.1. Nothing justified the pin (CI runs a plain composer update and ADR 0009 targets "Symfony 8" generically), so widen to ^8.0 — the standard bundle convention, BC-safe across Symfony minors. Also align the dev constraints: symfony/security-bundle was pinned to 8.0.* and symfony/cache to ^7.2, so the bundle's own CI never exercised 8.1; both move to ^8.0. Full suite passes against Symfony 8.1.0. --- composer.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index d01445f..fffded4 100644 --- a/composer.json +++ b/composer.json @@ -10,15 +10,15 @@ "doctrine/orm": "^3.6", "psr/clock": "^1.0", "psr/log": "^3.0", - "symfony/clock": "8.0.*", - "symfony/config": "8.0.*", - "symfony/dependency-injection": "8.0.*", - "symfony/framework-bundle": "8.0.*", - "symfony/http-foundation": "8.0.*", - "symfony/http-kernel": "8.0.*", - "symfony/security-core": "8.0.*", + "symfony/clock": "^8.0", + "symfony/config": "^8.0", + "symfony/dependency-injection": "^8.0", + "symfony/framework-bundle": "^8.0", + "symfony/http-foundation": "^8.0", + "symfony/http-kernel": "^8.0", + "symfony/security-core": "^8.0", "symfony/translation-contracts": "^3.5", - "symfony/uid": "8.0.*" + "symfony/uid": "^8.0" }, "require-dev": { "phpunit/phpunit": "^13.1", @@ -32,8 +32,8 @@ "rector/rector": "^2.4", "deptrac/deptrac": "^4.6", "infection/infection": "^0.33", - "symfony/cache": "^7.2", - "symfony/security-bundle": "8.0.*" + "symfony/cache": "^8.0", + "symfony/security-bundle": "^8.0" }, "autoload": { "psr-4": { "WeDevelop\\AuditLog\\": "src/" } From 61e8e8bd9ad04b39800bd6538e710204c1dad466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Fr=C3=A8rejean?= Date: Tue, 2 Jun 2026 15:03:47 +0200 Subject: [PATCH 2/2] fix: avoid deprecated BundleInterface in test kernel return type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Symfony 8.1 deprecated HttpKernel's BundleInterface, which TestKernel inherited via Kernel::registerBundles()'s @return phpdoc — tripping the phpstan deprecation rule once the bump pulled 8.1. Override the phpdoc to the concrete Bundle base class the test bundles extend: accurate (a narrow, not a widen), deprecation-free, and valid on both 8.0 and 8.1. --- tests/Functional/TestKernel.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Functional/TestKernel.php b/tests/Functional/TestKernel.php index 79df655..ddb4e53 100644 --- a/tests/Functional/TestKernel.php +++ b/tests/Functional/TestKernel.php @@ -11,6 +11,7 @@ use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Bundle\SecurityBundle\SecurityBundle; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; +use Symfony\Component\HttpKernel\Bundle\Bundle; use Symfony\Component\HttpKernel\Kernel; use WeDevelop\AuditLog\AuditLogBundle; use WeDevelop\AuditLog\Reading\RecordReader; @@ -23,6 +24,13 @@ final class TestKernel extends Kernel { use MicroKernelTrait; + /** + * Symfony 8.1 deprecated HttpKernel's BundleInterface, which the inherited + * return type names. Narrow to the concrete Bundle base class our test + * bundles all extend — accurate, deprecation-free, and valid on 8.0 and 8.1. + * + * @return iterable + */ #[Override] public function registerBundles(): iterable {