Skip to content

Commit 80cf912

Browse files
jmikolaalcaeus
andauthored
Update src/Operation/FindAndModify.php
Co-Authored-By: Andreas Braun <[email protected]>
1 parent 93d95ed commit 80cf912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Operation/FindAndModify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function __construct($databaseName, $collectionName, array $options)
166166
}
167167

168168
if (isset($options['hint']) && ! is_string($options['hint']) && ! is_array($options['hint']) && ! is_object($options['hint'])) {
169-
throw InvalidArgumentException::invalidType('"hint" option', $options['hint'], 'string or array or object');
169+
throw InvalidArgumentException::invalidType('"hint" option', $options['hint'], ['string', 'array', 'object']);
170170
}
171171

172172
if (isset($options['maxTimeMS']) && ! is_integer($options['maxTimeMS'])) {

0 commit comments

Comments
 (0)