Skip to content

Commit 4012a25

Browse files
author
Alexander Miertsch
authored
Merge pull request #2 from event-engine/feature/allow_index_arg_on_drop_index
Allow passing Index arg to dropIndex
2 parents 648de53 + c3275fe commit 4012a25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/DocumentStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public function addCollectionIndex(string $collectionName, Index $index): void;
5959

6060
/**
6161
* @param string $collectionName
62-
* @param string $indexName
62+
* @param string|Index $index
6363
* @throws RuntimeException if dropping did not succeed
6464
*/
65-
public function dropCollectionIndex(string $collectionName, string $indexName): void;
65+
public function dropCollectionIndex(string $collectionName, $index): void;
6666

6767
/**
6868
* @param string $collectionName

src/InMemoryDocumentStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ public function addCollectionIndex(string $collectionName, Index $index): void
9999

100100
/**
101101
* @param string $collectionName
102-
* @param string $indexName
102+
* @param string|Index $index
103103
* @throws RuntimeException if dropping did not succeed
104104
*/
105-
public function dropCollectionIndex(string $collectionName, string $indexName): void
105+
public function dropCollectionIndex(string $collectionName, $index): void
106106
{
107107
//InMemoryDocumentStore ignores indices
108108
}

0 commit comments

Comments
 (0)