Ver código fonte

Fix wrong case in ObjectID class name

Andreas Braun 9 anos atrás
pai
commit
02fbecf46c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/Mongo/MongoId.php

+ 1 - 1
lib/Mongo/MongoId.php

@@ -212,7 +212,7 @@ class MongoId implements Serializable, TypeInterface
             } elseif ($id instanceof self || $id instanceof ObjectID) {
                 $this->objectID = new ObjectID((string) $id);
             } else {
-                $this->objectID = new ObjectId();
+                $this->objectID = new ObjectID();
             }
         } catch (\Exception $e) {
             throw new MongoException('Invalid object ID', 19);