Skip to content

fix(metadata): copy contentNegotiation in withOperation() - #8694

Merged
soyuka merged 1 commit into
api-platform:5.0from
Maxcastel:fix/with-operation-content-negotiation
Oct 16, 2026
Merged

soyuka merged 1 commit into
api-platform:5.0from
Maxcastel:fix/with-operation-content-negotiation

Conversation

@Maxcastel

Copy link
Copy Markdown
Contributor
Q A
Branch? 5.0
Tickets Related to #7818
License MIT

Option added by #7818.

(new Get())->withOperation(new Get(contentNegotiation: false));
// Error: Call to undefined method ApiPlatform\Metadata\Get::withNegotiateContent()

copyFrom() builds the wither name from the getter, and canNegotiateContent() doesn't match withContentNegotiation().

@soyuka
soyuka merged commit 82188af into api-platform:5.0 Oct 16, 2026
109 of 117 checks passed
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.

2 participants