Skip to content

IBX-12041: Allowed forcing the Symfony version of 6.0 project builds - #149

Closed
ViniTou wants to merge 6 commits into
mainfrom
IBX-12046-symfony-version
Closed

ViniTou wants to merge 6 commits into
mainfrom
IBX-12046-symfony-version

Conversation

@ViniTou

@ViniTou ViniTou commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12041

Related PRs:

Description:

The 6.0 packages are being widened to symfony/* ^7.4 || ^8.1. To prove a project works on 8.1 before the editions flip, browser tests need a project forced to 8.1, but website-skeleton pins extra.symfony.require: 7.4.*. When SYMFONY_VERSION is set, the 6.0 script overrides it right after create-project; unset, nothing changes, so every current caller is unaffected.

Two more things the 8.1 regression run (oss#294) hit, both fixed here for any build, not only forced ones:

  • Once the editions allow DoctrineBundle 3, a PHP 8.4 build on Symfony 7.4 resolves DoctrineBundle 2.19 on the first install (Flex applies its 2.13 recipe: use_savepoints etc.) and 3.3 after dependencies.json is applied, which then rejects that config. The script now snapshots installed versions around that update and runs composer recipes:update for every package that changed version and has an outdated recipe (the same step a project upgrading to DoctrineBundle 3 needs). Builds where nothing moves are unchanged.
  • Symfony 8.1's framework-bundle recipe ships a Kernel with getAllowedEnvs(): ['prod', 'dev', 'test'], which rejects APP_ENV=behat. The script adds behat there when the method exists (no-op on 7.4 Kernels); the skeleton's first update runs its scripts only after that.

Merge before the gh-workflows PR: the other order would make the new input a silent no-op (a "green on 8.1" run that is really 7.4).

For QA:

Exercised by oss#294 setup 4.

Documentation:

N/A

…d allowed the behat env on Symfony 8.1 Kernels

A package pulled to a new major by dependencies.json (DoctrineBundle 2 -> 3 on PHP 8.4) kept the configuration of its old recipe, and Symfony 8.1's framework-bundle recipe ships a Kernel that rejects APP_ENV=behat.
@ViniTou
ViniTou force-pushed the IBX-12046-symfony-version branch from d4c7d2a to bb53793 Compare September 28, 2026 10:54
@ViniTou ViniTou changed the title IBX-12046: Allowed forcing the Symfony version of 6.0 project builds IBX-12041: Allowed forcing the Symfony version of 6.0 project builds Sep 28, 2026
…cing a version and failed on a half-upgraded tree

Flex had pinned symfony/framework-bundle to 7.4.* in the project, so the forced 8.1 run kept it on 7.4 while other components moved to 8.1 and still passed.
@sonarqubecloud

Copy link
Copy Markdown

@ViniTou

ViniTou commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

it served it purpose

@ViniTou ViniTou closed this Oct 6, 2026
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.

3 participants