[BUG][PHP][Symfony] Not compatible with Symfony 8
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Start with modules/openapi-generator/src/main/resources/php-symfony/composer.mustache and inspect the Symfony package constraints used by the php-symfony generator. Generate a bundle from any valid OpenAPI file with -g php-symfony, then try including it in a Symfony 8 project. Done means the generated bundle can be added without a Composer version conflict.
Written by the indexing model from the issue text.
Description
Bug Report Checklist
-
Have you provided a full/minimal spec to reproduce the issue?Any valid OpenAPI file -
Have you validated the input using an OpenAPI validator?Any valid OpenAPI file - Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Symfony 8.0 was released almost a year ago (November 2025) so it would be great that the generated Symfony bundles are compatible with it.
Currently it's not the case, at least because composer.mustache declares the constraint "^6.4|^7.0" on the Symfony packages.
openapi-generator version
All versions, include the current master (at the time of creating this issue)
OpenAPI declaration file content or url
Any valid OpenAPI file
Generation Details
Generation with generator php-symfony
Steps to reproduce
- Take any valid OpenAPI file
- generate a symfony bundle (with the CLI and flag
-g php-symfony) - Try include it in a Symfony 8 project
Expected output: the composer command to add this bundle succeeds
Actual output: composer fails because of version conflict
Related issues/PRs
Suggest a fix
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- Avg merge
- 3d 11m
- Merged PRs (30d)
- 116
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenAPITools/openapi-generator
-
[BUG][csharp] httpclient: oneOf/anyOf responses throw ArgumentException because FromJson is invoked with HttpContentPossibly taken @cguldner claimed this 4 days ago. OpenIssue: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenAPITools/openapi-generator#25079 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
OpenAPITools/openapi-generator#24997 ·
Maintainers usually reply within 1 day
-
[BUG][KOTLIN] Jackson3 option does not discover modules like Jackson2 doesPossibly taken @kdelay claimed this 30 days ago. OpenIssue: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
OpenAPITools/openapi-generator#24859 ·
Maintainers usually reply within 1 day
-
[BUG][KOTLIN] Fails to compile after updating to 7.25.0 with useJackson3=false useSpringBoot4=truePossibly taken A pull request linked to this issue is open or already merged. OpenIssue: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
OpenAPITools/openapi-generator#24842 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
OpenAPITools/openapi-generator#24830 ·
Maintainers usually reply within 1 day
All issues in OpenAPITools/openapi-generator
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
area/docs
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
BoxChart rejects valid List.of data with NullPointerExceptionPossibly taken @PHJ2000 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100