Explorar el Código

Merge pull request #126 from alcaeus/fix-case-sensitive-objectid

Fix wrong case in ObjectID class name
Andreas hace 9 años
padre
commit
9ecc7904d6
Se han modificado 2 ficheros con 12 adiciones y 2 borrados
  1. 11 1
      CHANGELOG-1.0.md
  2. 1 1
      lib/Mongo/MongoId.php

+ 11 - 1
CHANGELOG-1.0.md

@@ -3,7 +3,17 @@ CHANGELOG
 
 This changelog references the relevant changes done in minor version updates.
 
-1.0.5 (xxxx-xx-xx)
+1.0.6 (xxxx-xx-xx)
+------------------
+
+All issues and pull requests under this release may be found under the
+[1.0.6](https://github.com/alcaeus/mongo-php-adapter/issues?q=milestone%3A1.0.5)
+milestone.
+
+ * [#126](https://github.com/alcaeus/mongo-php-adapter/pull/126) fixes a class
+ name that was improperly capitalized.
+
+1.0.5 (2016-07-03)
 ------------------
 
 All issues and pull requests under this release may be found under the

+ 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);