Skip to content

Commit 1fd1d1b

Browse files
committed
Improve types
1 parent 21797a8 commit 1fd1d1b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Diff for: src/Schema/Blueprint.php

+9-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* indexOptions?: 'docs'|'freqs'|'positions'|'offsets',
5050
* store?: bool,
5151
* ignoreAbove?: int,
52-
* multi?: array<string, array<mixed>>,
52+
* multi?: array<string, array<string, mixed>>,
5353
* norms?: 'include'|'omit',
5454
* }
5555
* @link https://www.mongodb.com/docs/atlas/atlas-search/analyzers/character-filters/
@@ -77,13 +77,20 @@
7777
* } | array{
7878
* excludes: array<string>,
7979
* }
80+
* @link https://www.mongodb.com/docs/atlas/atlas-search/synonyms/#std-label-synonyms-ref
81+
* @phpstan-type TypeSearchIndexSynonyms array{
82+
* analyzer: string,
83+
* name: string,
84+
* source?: array{collection: string},
85+
* }
8086
* @link https://www.mongodb.com/docs/manual/reference/command/createSearchIndexes/#std-label-search-index-definition-create
8187
* @phpstan-type TypeSearchIndexDefinition array{
82-
* analyser?: string,
88+
* analyzer?: string,
8389
* analyzers?: TypeSearchIndexAnalyzer[],
8490
* searchAnalyzer?: string,
8591
* mappings: array{dynamic: true} | array{dynamic?: bool, fields: array<string, TypeSearchIndexField>},
8692
* storedSource?: TypeSearchIndexStoredSource,
93+
* synonyms?: TypeSearchIndexSynonyms[],
8794
* }
8895
* @link https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-type/#atlas-vector-search-index-fields
8996
* @phpstan-type TypeVectorSearchIndexField array{

0 commit comments

Comments
 (0)