Skip to content

Commit

Permalink
Fix array shape for Collection::listSearchIndex($options) (#1480)
Browse files Browse the repository at this point in the history
Remove array shape, not supported by phpcs
squizlabs/PHP_CodeSniffer#3734
  • Loading branch information
GromNaN authored Oct 14, 2024
1 parent dd9ac31 commit 985484d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ public function listIndexes(array $options = [])
* Returns information for all Atlas Search indexes for the collection.
* Only available when used against a 7.0+ Atlas cluster.
*
* @param array{name?: string} $options Command options
* @param array $options Command options
* @return Countable&Iterator
* @throws InvalidArgumentException for parameter/option parsing errors
* @throws DriverRuntimeException for other driver errors (e.g. connection errors)
Expand Down
6 changes: 3 additions & 3 deletions src/Operation/ListSearchIndexes.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ class ListSearchIndexes implements Executable
/**
* Constructs an aggregate command for listing Atlas Search indexes
*
* @param string $databaseName Database name
* @param string $collectionName Collection name
* @param array{name?: string} $options Command options
* @param string $databaseName Database name
* @param string $collectionName Collection name
* @param array $options Command options
*/
public function __construct(private string $databaseName, private string $collectionName, array $options = [])
{
Expand Down

0 comments on commit 985484d

Please sign in to comment.