Parcourir la source

Fix wrong case in ObjectID class name

Andreas Braun il y a 9 ans
Parent
commit
02fbecf46c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);