Skip to content

fix: allow Symfony 8.1 by widening pinned constraints to ^8.0#6

Merged
erikfrerejean merged 2 commits into
mainfrom
fix/allow-symfony-8.1
Jun 2, 2026
Merged

fix: allow Symfony 8.1 by widening pinned constraints to ^8.0#6
erikfrerejean merged 2 commits into
mainfrom
fix/allow-symfony-8.1

Conversation

@erikfrerejean

Copy link
Copy Markdown
Member

Problem

The bundle pinned every Symfony component in require to 8.0.*, which prevents installation on Symfony 8.1.

Fix

Widen the Symfony constraints from 8.0.* to ^8.0 (>=8.0 <9.0) — the standard Symfony bundle convention. This is BC-safe because Symfony does not break backwards compatibility across minor releases.

Nothing justified the original pin:

  • CI installs with a plain composer update (no version matrix forcing 8.0).
  • ADR 0009 targets "Symfony 8" generically, not 8.0 specifically.

Also aligned the dev constraints so the bundle's own CI actually exercises 8.1:

  • symfony/security-bundle: 8.0.*^8.0
  • symfony/cache: ^7.2^8.0 (was lagging a major behind the rest)

Verification

  • composer update "symfony/*" resolves cleanly to Symfony 8.1.0.
  • Full test suite passes: 40 tests, 122 assertions, OK.

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.
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.
@erikfrerejean erikfrerejean merged commit c178bc8 into main Jun 2, 2026
1 check passed
@erikfrerejean erikfrerejean deleted the fix/allow-symfony-8.1 branch June 2, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant