Skip to content

Commit b34f2dc

Browse files
authored
Fix ClassMetadata type for SearchIndexMapping (#2988)
A `SearchIndexMapping` can have either `SearchIndexDefinition` or `VectorSearchIndexDefinition` for `definition`. Currently it is missing the latter.
1 parent 85324ee commit b34f2dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Mapping/ClassMetadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
* @phpstan-type SearchIndexMapping array{
270270
* type: "search"|"vectorSearch",
271271
* name: string,
272-
* definition: SearchIndexDefinition
272+
* definition: SearchIndexDefinition|VectorSearchIndexDefinition
273273
* }
274274
* @phpstan-type VectorSearchIndexField array{
275275
* type: "vector"|"filter",

0 commit comments

Comments
 (0)