Commit 878896c7 authored by Will Banfield's avatar Will Banfield Committed by Jeremy Mikola

uncommented argument check

parent 8fe879af
......@@ -64,9 +64,9 @@ class FindOneAndUpdate implements Executable
throw InvalidArgumentException::invalidType('$update', $update, 'array or object');
}
// if ( ! \MongoDB\is_first_key_operator($update)) {
// throw new InvalidArgumentException('First key in $update argument is not an update operator');
// }
if ( ! \MongoDB\is_first_key_operator($update)) {
throw new InvalidArgumentException('First key in $update argument is not an update operator');
}
$options += [
'returnDocument' => self::RETURN_DOCUMENT_BEFORE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment