Skip to content

dep: Allow Symfony 8 - #469

Open
sveneld wants to merge 1 commit into
ankitpokhrel:mainfrom
sveneld:symfony-8
Open

sveneld wants to merge 1 commit into
ankitpokhrel:mainfrom
sveneld:symfony-8

Conversation

@sveneld

@sveneld sveneld commented Oct 10, 2026

Copy link
Copy Markdown

What does this PR solve?

Allow installing next to Symfony 8 while keeping Symfony 6 and 7.

  • Expand symfony/console, symfony/event-dispatcher, symfony/http-foundation, and symfony/mime to ^6.0 || ^7.0 || ^8.0. PHP floor stays ^8.1; Composer picks Symfony 8 only on PHP 8.4+.
  • bin/tus: Application::add() was removed in Symfony 8, so register the command with addCommands() (present on 6, 7, and 8).
  • ExpirationCommand::configure(): void so the signature matches Symfony 8.
  • Explicit nullable parameter types (same as Add support for PHP 8.4 #452) so PHP 8.4+ deprecations do not fail the suite. This PR does not replace Add support for PHP 8.4 #452; it only needs those signature tweaks for 8.4/8.5 CI.

How to test?

Local Docker matrix (Redis + ext-pcntl + ext-apcu):

PHP Deps Symfony Result
8.1.34 --prefer-lowest --prefer-stable console 6.0.0 230 tests, 572 assertions
8.3.30 highest console 7.4.20 230 tests, 572 assertions
8.4.20 highest console 8.1.8 230 tests, 572 assertions
8.5.11 highest console 8.1.8 230 tests, 572 assertions

php bin/tus list shows tus:expired on 6/7/8.

php-cs-fixer fix --dry-run (3.4.0 on PHP 8.1 lowest): clean. Latest fixer (3.95) still reports pre-existing sprintf → \sprintf in src/File.php and tests/RequestTest.php (unchanged here).

Checklist

  • I have added/updated enough tests related to my changes.
  • I have also manually checked and verified that my changes fix the issue and doesn't break any other functionalities.
  • My changes are backwards compatible.

@sveneld

sveneld commented Oct 10, 2026

Copy link
Copy Markdown
Author

@ankitpokhrel could you take a look when you have a moment? This is a small constraint bump so the library can be installed next to Symfony 8, without dropping 6/7.

This branch has not been deployed

No deployments
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