Skip to content

fix(graphql): accept FilterInterface instance in QueryParameter#7972

Merged
soyuka merged 1 commit into
api-platform:4.3from
soyuka:fix/graphql-args
May 12, 2026
Merged

fix(graphql): accept FilterInterface instance in QueryParameter#7972
soyuka merged 1 commit into
api-platform:4.3from
soyuka:fix/graphql-args

Conversation

@soyuka
Copy link
Copy Markdown
Member

@soyuka soyuka commented May 12, 2026

Q A
Branch? 4.3
Tickets refs #7966
License MIT
Doc PR

FieldsBuilder called filterLocator->has() with whatever QueryParameter::$filter returned, crashing on object-form filters (new SortFilter()) when the parameter key contained '['. A resolveFilter() helper now handles both string service ids and FilterInterface instances, applied at every locator site.

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Tickets       | refs api-platform#7966
| License       | MIT
| Doc PR        | ∅

FieldsBuilder called filterLocator->has() with whatever QueryParameter::$filter
returned, crashing on object-form filters (new SortFilter()) when the parameter
key contained '['. A resolveFilter() helper now handles both string service ids
and FilterInterface instances, applied at every locator site.
@soyuka soyuka merged commit f533810 into api-platform:4.3 May 12, 2026
117 of 120 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