Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Providing fix for doctrine/common#135

  • Loading branch information...
commit df4e23e0d3d522e6fd96a4a21abefef692cb33ed 1 parent 5c5c74b
@Ocramius Ocramius authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Doctrine/Common/Collections/ArrayCollection.php
View
2  lib/Doctrine/Common/Collections/ArrayCollection.php
@@ -120,7 +120,7 @@ public function current()
*/
public function remove($key)
{
- if (isset($this->_elements[$key])) {
+ if (array_key_exists($key, $this->_elements)) {
$removed = $this->_elements[$key];
unset($this->_elements[$key]);
Please sign in to comment.
Something went wrong with that request. Please try again.