Skip to content

Fix ClassMetadata type for SearchIndexMapping#2988

Merged
paulinevos merged 1 commit intodoctrine:2.16.xfrom
paulinevos:fix-type
Jan 29, 2026
Merged

Fix ClassMetadata type for SearchIndexMapping#2988
paulinevos merged 1 commit intodoctrine:2.16.xfrom
paulinevos:fix-type

Conversation

@paulinevos
Copy link
Contributor

Q A
Type bug
BC Break /no

Summary

A SearchIndexMapping can have either SearchIndexDefinition or VectorSearchIndexDefinition for definition. Currently it is missing the latter.

A `SearchIndexMapping` can have either `SearchIndexDefinition` or
`VectorSearchIndexDefinition` for `definition`. Currently it is missing
the latter.
Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

We could add a test that uses this method so that PHPStan would validate the input array. But that's not a requirement.

@paulinevos paulinevos merged commit b34f2dc into doctrine:2.16.x Jan 29, 2026
28 checks passed
@paulinevos paulinevos deleted the fix-type branch January 29, 2026 11:33
@GromNaN GromNaN added this to the 2.16.1 milestone Jan 29, 2026
@GromNaN GromNaN added the Bug label Jan 29, 2026
paulinevos added a commit that referenced this pull request Jan 29, 2026
A `SearchIndexMapping` can have either `SearchIndexDefinition` or
`VectorSearchIndexDefinition` for `definition`. Currently it is missing
the latter.

Co-authored-by: Pauline Vos <pvos88@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments