Skip to content

Commit

Permalink
Merge pull request #2 from event-engine/feature/allow_index_arg_on_dr…
Browse files Browse the repository at this point in the history
…op_index

Allow passing Index arg to dropIndex
  • Loading branch information
codeliner authored Jul 6, 2019
2 parents 648de53 + c3275fe commit 4012a25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/DocumentStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ public function addCollectionIndex(string $collectionName, Index $index): void;

/**
* @param string $collectionName
* @param string $indexName
* @param string|Index $index
* @throws RuntimeException if dropping did not succeed
*/
public function dropCollectionIndex(string $collectionName, string $indexName): void;
public function dropCollectionIndex(string $collectionName, $index): void;

/**
* @param string $collectionName
Expand Down
4 changes: 2 additions & 2 deletions src/InMemoryDocumentStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ public function addCollectionIndex(string $collectionName, Index $index): void

/**
* @param string $collectionName
* @param string $indexName
* @param string|Index $index
* @throws RuntimeException if dropping did not succeed
*/
public function dropCollectionIndex(string $collectionName, string $indexName): void
public function dropCollectionIndex(string $collectionName, $index): void
{
//InMemoryDocumentStore ignores indices
}
Expand Down

0 comments on commit 4012a25

Please sign in to comment.