Skip to content

feat!: drop the Request::getContentType() fallbacks - #8517

Open
Maxcastel wants to merge 1 commit into
api-platform:mainfrom
Maxcastel:feat/drop-request-get-content-type-fallbacks
Open

feat!: drop the Request::getContentType() fallbacks#8517
Maxcastel wants to merge 1 commit into
api-platform:mainfrom
Maxcastel:feat/drop-request-get-content-type-fallbacks

Conversation

@Maxcastel

@Maxcastel Maxcastel commented Sep 9, 2026

Copy link
Copy Markdown
Contributor
Q A
Branch? main
Tickets n/a
License MIT
Doc PR n/a
  • getContentTypeFormat() was added in Symfony 6.2
  • getContentType() was removed in Symfony 7.0

https://github.com/symfony/symfony/blob/7.4/src/Symfony/Component/HttpFoundation/CHANGELOG.md

The Symfony floor is ^7.4 || ^8.0, so the guard always evaluates to true and the fallback calls a method that cannot exist.

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