Skip to content

Commit 6e9b7c4

Browse files
committed
Fix ClassMetadata type for SearchIndexMapping
A `SearchIndexMapping` can have either `SearchIndexDefinition` or `VectorSearchIndexDefinition` for `definition`. Currently it is missing the latter.
1 parent 85324ee commit 6e9b7c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)