Skip to content

Add support for Symfony 8 #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2025
Merged

Add support for Symfony 8 #248

merged 1 commit into from
Aug 5, 2025

Conversation

Kocal
Copy link
Member

@Kocal Kocal commented Aug 5, 2025

No description provided.

@carsonbot carsonbot added the Status: Needs Review Needs to be reviewed label Aug 5, 2025
@Kocal Kocal added Feature New Feature and removed Status: Needs Review Needs to be reviewed labels Aug 5, 2025
@xabbuh
Copy link
Member

xabbuh commented Aug 5, 2025

We probably need to tweak the CI matrix a bit as we currently don't have a job running against Symfony 7 (the same was actually already true before for Symfony 6).

@Kocal

This comment was marked as off-topic.

@Kocal Kocal force-pushed the symfony-8-support branch 3 times, most recently from d97591a to 4c006dc Compare August 5, 2025 06:49
@Kocal

This comment was marked as off-topic.

@Kocal Kocal requested a review from xabbuh August 5, 2025 06:53
@carsonbot carsonbot added the Status: Needs Review Needs to be reviewed label Aug 5, 2025
- php-version: '8.1'
symfony-version: '5.4'
- php-version: '8.1'
symfony-version: '6.2'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't waste resources on EOL versions

Copy link
Member Author

@Kocal Kocal Aug 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I specified 6.2 and 7.0 because the Bundle support these versions. I also tend to not really care about unmaintained versions, but is it fine here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it's about time to drop support for unmaintained Symfony releases

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm totally fine with that, but I was thinking doing that in a second PR, and then release WebpackEncoreBundle 3.0

- php-version: '8.1'
symfony-version: '6.2'
- php-version: '8.2'
symfony-version: '7.0'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here but we can use 7.3 instead

@Kocal Kocal force-pushed the symfony-8-support branch 4 times, most recently from 7e16e26 to 5b14a24 Compare August 5, 2025 11:30
@Kocal Kocal force-pushed the symfony-8-support branch from 5b14a24 to 4cc9ffd Compare August 5, 2025 11:35
@Kocal Kocal merged commit 7ae70d4 into symfony:2.x Aug 5, 2025
15 checks passed
@Kocal Kocal deleted the symfony-8-support branch August 5, 2025 12:35
Kocal added a commit to symfony/ux that referenced this pull request Aug 6, 2025
…yImage][LiveComponent][Map][Notify][React][StimulusBundle][Svelte][Swup][TogglePassword][Toolkit][Translator][Turbo][TwigComponent][Typed][Vue] Add support for Symfony 8 (Kocal)

This PR was merged into the 2.x branch.

Discussion
----------

[Autocomplete][Chartjs][Cropperjs][Dropzone][Icons][LazyImage][LiveComponent][Map][Notify][React][StimulusBundle][Svelte][Swup][TogglePassword][Toolkit][Translator][Turbo][TwigComponent][Typed][Vue] Add support for Symfony 8

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->
| Docs?         | no <!-- required for new features -->
| Issues        | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

<!--
Replace this notice by a description of your feature/bugfix.
This will help reviewers and should be a good start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - For new features, provide some code snippets to help understand usage.
 - Features and deprecations must be submitted against branch main.
 - Update/add documentation as required (we can help!)
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
 - Never break backward compatibility (see https://symfony.com/bc).
-->

As suggested in symfony/webpack-encore-bundle#248, I added new jobs for testing explicit Symfony version.

The Symfony 8.0.x-dev job is failing because it needs zenstruck/foundry#891, which is not possible to use because Foundry is not compatible with Symfony 8 yet (opened zenstruck/foundry#960)

There is a lot of changes, but these are only small modifications (composer.json, CHANGELOG.md, and fixing method typings)

I also updated the deprecated packages, that's fine, it makes things easier for us to handle

Commits
-------

998de8d Add support for Symfony 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New Feature Status: Needs Review Needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants