浏览代码

Fix wrong case in ObjectID class name

Andreas Braun 9 年之前
父节点
当前提交
02fbecf46c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {
             } elseif ($id instanceof self || $id instanceof ObjectID) {
                 $this->objectID = new ObjectID((string) $id);
                 $this->objectID = new ObjectID((string) $id);
             } else {
             } else {
-                $this->objectID = new ObjectId();
+                $this->objectID = new ObjectID();
             }
             }
         } catch (\Exception $e) {
         } catch (\Exception $e) {
             throw new MongoException('Invalid object ID', 19);
             throw new MongoException('Invalid object ID', 19);