Skip to content

fix(metadata): move resolveEnumType() to TypeHelper - #8910

Closed
Maxcastel wants to merge 1 commit into
api-platform:5.0from
Maxcastel:fix/metadata-enum-type-without-state
Closed

Maxcastel wants to merge 1 commit into
api-platform:5.0from
Maxcastel:fix/metadata-enum-type-without-state

Conversation

@Maxcastel

@Maxcastel Maxcastel commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor
Q A
Branch? 5.0
License MIT

The api-platform/metadata component tests fail with the lowest and minimal-changes dependencies:

Error: Call to undefined method ApiPlatform\State\Parameter\ValueCaster::resolveEnumType()

ParameterResourceMetadataCollectionFactory calls ValueCaster::resolveEnumType(), added to api-platform/state in #8871 and not released yet, while these jobs install api-platform/state from Packagist. It only inspects types, so it moves to metadata's TypeHelper, which state, validator and symfony already depend on.

@Maxcastel
Maxcastel force-pushed the fix/metadata-enum-type-without-state branch from 23fee7e to 4f82662 Compare December 1, 2026 09:59
@Maxcastel Maxcastel changed the title fix(metadata): resolve the enum type without ValueCaster fix(metadata): move resolveEnumType() to TypeHelper Dec 1, 2026
@soyuka

soyuka commented Dec 1, 2026

Copy link
Copy Markdown
Member

We don't want to move this.

@soyuka soyuka closed this Dec 1, 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.

2 participants