Commit 45f723be authored by Jens Segers's avatar Jens Segers

Revert MongoId::isValid

parent a51c4203
...@@ -775,7 +775,7 @@ class Builder extends BaseBuilder ...@@ -775,7 +775,7 @@ class Builder extends BaseBuilder
*/ */
public function convertKey($id) public function convertKey($id)
{ {
if (MongoId::isValid($id)) { if (is_string($id) and strlen($id) === 24 and ctype_xdigit($id)) {
return new MongoId($id); return new MongoId($id);
} }
......
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