Skip to content

fix(metadata): guard toProperty read in IdentifiersExtractor - #8919

Merged
soyuka merged 1 commit into
api-platform:5.0from
soyuka:fix/identifiers-extractor-to-property
Dec 1, 2026
Merged

soyuka merged 1 commit into
api-platform:5.0from
soyuka:fix/identifiers-extractor-to-property

Conversation

@soyuka

@soyuka soyuka commented Dec 1, 2026

Copy link
Copy Markdown
Member
Q A
Branch? 5.0
Tickets ~
License MIT
Doc PR ~

When the toProperty relation is a scalar or null, reading toProperty.identifier leaked an UnexpectedTypeException from PropertyAccess. It now throws the same RuntimeException as a missing property.

Extracted from #8868.

@soyuka
soyuka merged commit 964b7d2 into api-platform:5.0 Dec 1, 2026
115 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.

1 participant