Skip to content

Commit 79be572

Browse files
committed
Use private constant in lieu of hard-coded string
1 parent 48c8290 commit 79be572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Operation/DropCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function execute(Server $server)
4949
* and NOP instead of throwing.
5050
*/
5151
if ($e->getMessage() === self::$errorMessageNamespaceNotFound) {
52-
return (object) ['ok' => 0, 'errmsg' => 'ns not found'];
52+
return (object) ['ok' => 0, 'errmsg' => self::$errorMessageNamespaceNotFound];
5353
}
5454

5555
throw $e;

0 commit comments

Comments
 (0)