Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Work in progress Orphaned

92068[WIP][TASK] Avoid Symfony v8 for transitive Symfony dependencies

Benjamin Franzke CR 0 V 0 Easy +16 −1 updated 03/30/26, 11:39

Commit message

To enforce LTS usage of Symfony v7, we make sure that transitive
dependencies are pinned to v7 releases.

This ensures that our users with PHP >=8.4 or when using
`--ignore-platform-reqs` (although highly discouraged) do not update to
Symfony v8 in transitive packages, which then become incompatible with
PHP 8.2 and 8.3.

Please note that upstream Symfony packages technically allow a mixture
of v7 and v8 components and upstream suggests to use Symfony Flex to pin
to a LTS release [1], which is not possible for us, as we use vanilla
composer in TYPO3, without Symfony flex as an addon.

[1] https://symfony.com/doc/7.4/bundles/best_practices.html#require-a-specific-symfony-version

TODO:
 * Extend `Build/Scripts/runTests.sh -s checkComposer` (or a new
   CI script) to detect new transititive symfony dependencies that
   require locking

Commands executed:
  composer req --no-update \
    symfony/cache:^7.3 \
    symfony/clock:^7.3 \
    symfony/event-dispatcher:^7.3 \
    symfony/string:^7.3 \
    symfony/var-exporter:^7.3
  composer update --lock

  # required by symfony/expression-language
  composer req -d typo3/sysext/core --no-update \
    symfony/cache:^7.3
  # required by symfony/messenger
  composer req -d typo3/sysext/core --no-update \
    symfony/clock:^7.3
  # required by symfony/mailer
  composer req -d typo3/sysext/core --no-update \
    symfony/event-dispatcher:^7.3
  # required by symfony/console
  composer req -d typo3/sysext/core --no-update \
    symfony/string:^7.3
  # required by symfony/dependency-injection
  composer req -d typo3/sysext/core --no-update \
    symfony/var-exporter:^7.3

  # required by symfony/property-info
  composer req -d typo3/sysext/extbase --no-update \
    symfony/cache:^7.3
  # required by symfony/property-info
  composer req -d typo3/sysext/extbase --no-update \
    symfony/string:^7.3
  # required by symfony/property-access
  composer req -d typo3/sysext/extbase --no-update \
    symfony/type-info:^7.3

  # required by symfony/expression-language
  composer req -d typo3/sysext/form --no-update \
    symfony/cache:^7.3

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 2
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/68/92068/2 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/68/92068/2 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Files 5

Review log 36

  1. Benjamin Franzke uploaded patch set 1 12/09/25, 15:04

  2. core-ci voted on patch set 1 V -1 12/09/25, 15:13 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/91903

  3. Benjamin Franzke uploaded patch set 2 V -1 12/09/25, 15:19

  4. core-ci voted on patch set 2 V -1 12/09/25, 15:29 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/91907

  5. core-ci voted on patch set 2 V +1 12/09/25, 15:48 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/91907

  6. Benjamin Franzke marked it work in progress 03/30/26, 11:39