Skip to content

Drop Symfony 6.4 and PHP 8.2 support #428

Open

Description

@njoubert-cleverage

Description

The bundle currently requires php: ^8.2 and symfony/*: ^6.4|^7.4|^8. Both lower bounds are reaching the end of their support:

Version End of bug fixes End of security fixes
Symfony 6.4 LTS November 2026 November 2027
PHP 8.2 December 31, 2024 December 31, 2026
  • Symfony 6.4 no longer receives bug fixes (security fixes only, until November 2027): a bug found in Symfony 6.4 will not be fixed upstream anymore, and keeping it in the CI matrix means maintaining workarounds for unfixed bugs.
  • PHP 8.2 no longer receives any fix, security included, after December 31, 2026.

v6.0 drops both, and requires PHP 8.3 and Symfony 7.4 LTS or 8.x.

Proposed changes

  • composer.json: php: ^8.3, every symfony/* requirement (require and require-dev) to ^7.4|^8; remove symfony/polyfill-php83 (keep polyfill-php84 / polyfill-php85 as long as PHP 8.3 is supported).
  • CI (test.yml): remove the PHP 8.2 jobs and the symfony-require: 6.4.* jobs; the lowest job runs on PHP 8.3.
  • Rector (rector.php): withPhpVersion(PhpVersion::PHP_83), apply the PHP 8.3 set (typed class constants, #[\Override]...).
  • CONTRIBUTING.md "PHP version" section: PHP 8.3 and later, PHP 8.4/8.5 functions through the polyfills.
  • Remove the Symfony 6.4 specific code and comments:
    • tests/Functional/KernelTest.php: tearDown() workaround for the ErrorHandler not removed by the first Symfony 6.4 versions (check whether it is still needed with 7.4);
    • phpstan.neon: update the BundleInterface comment (its replacement does not exist in Symfony 7.4 either, the ignore stays);
    • any Kernel::VERSION_ID / method_exists() check for a Symfony version older than 7.4.
  • Documentation: requirements in the README / docs/index.md, UPGRADE-6.0.md.
  • Apply the same change to the bridge bundles (archive, cache, doctrine, flysystem, rest, soap, ui) and to process-bundle-demo (separate tickets), for their next major version.

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

  • Major: applications running PHP 8.2 or Symfony 6.4 must upgrade (PHP 8.3+, Symfony 7.4+) before installing v6.0; Composer will not install v6.0 on them, they stay on v5.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions