Skip to content

Commit 902762e

Browse files
GromNaNalcaeus
andauthored
Apply suggestions from code review
Co-authored-by: Andreas Braun <[email protected]>
1 parent b99f4c1 commit 902762e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

UPGRADE-2.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type changed to `void`. In case of an error, an exception is thrown.
1313
* `MongoDB\Client`: `dropDatabase`
1414
* `MongoDB\Collection`: `drop`, `dropIndex`, `dropIndexes`, `dropSearchIndex`, `rename`
1515
* `MongoDB\Database`: `createCollection`, `drop`, `dropCollection`, `modifyCollection`, `renameCollection`
16-
* `MongoDB\Database::createEncryptedCollection()` return the list of encrypted fields
16+
* `MongoDB\Database::createEncryptedCollection()` returns the list of encrypted fields
1717

1818
If you still need to access the raw command result, you can use a `CommandSubscriber`.
1919

src/Operation/DropCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function execute(Server $server): void
8787
$server->executeWriteCommand($this->databaseName, $this->createCommand(), $this->createOptions());
8888
} catch (CommandException $e) {
8989
/* The server may return an error if the collection does not exist.
90-
* Ignore the exception to make the drop operation is idempotent */
90+
* Ignore the exception to make the drop operation idempotent */
9191
if ($e->getCode() === self::ERROR_CODE_NAMESPACE_NOT_FOUND) {
9292
return;
9393
}

0 commit comments

Comments
 (0)