From 985484da14ca3ab873ed4a3a2618533df37be88f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Mon, 14 Oct 2024 14:53:05 +0200 Subject: [PATCH] Fix array shape for `Collection::listSearchIndex($options)` (#1480) Remove array shape, not supported by phpcs https://github.com/squizlabs/PHP_CodeSniffer/issues/3734 --- src/Collection.php | 2 +- src/Operation/ListSearchIndexes.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Collection.php b/src/Collection.php index c596d3e96..6eacf2280 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -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) diff --git a/src/Operation/ListSearchIndexes.php b/src/Operation/ListSearchIndexes.php index e685da5c2..5d59725ed 100644 --- a/src/Operation/ListSearchIndexes.php +++ b/src/Operation/ListSearchIndexes.php @@ -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 = []) {