Skip to content

Commit 985484d

Browse files
authored
Fix array shape for Collection::listSearchIndex($options) (#1480)
Remove array shape, not supported by phpcs squizlabs/PHP_CodeSniffer#3734
1 parent dd9ac31 commit 985484d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Collection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ public function listIndexes(array $options = [])
925925
* Returns information for all Atlas Search indexes for the collection.
926926
* Only available when used against a 7.0+ Atlas cluster.
927927
*
928-
* @param array{name?: string} $options Command options
928+
* @param array $options Command options
929929
* @return Countable&Iterator
930930
* @throws InvalidArgumentException for parameter/option parsing errors
931931
* @throws DriverRuntimeException for other driver errors (e.g. connection errors)

src/Operation/ListSearchIndexes.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ class ListSearchIndexes implements Executable
4646
/**
4747
* Constructs an aggregate command for listing Atlas Search indexes
4848
*
49-
* @param string $databaseName Database name
50-
* @param string $collectionName Collection name
51-
* @param array{name?: string} $options Command options
49+
* @param string $databaseName Database name
50+
* @param string $collectionName Collection name
51+
* @param array $options Command options
5252
*/
5353
public function __construct(private string $databaseName, private string $collectionName, array $options = [])
5454
{

0 commit comments

Comments
 (0)