Permalink
Browse files

Providing fix for doctrine/common#135

  • Loading branch information...
Ocramius committed Nov 9, 2012
1 parent 5c5c74b commit df4e23e0d3d522e6fd96a4a21abefef692cb33ed
Showing with 1 addition and 1 deletion.
  1. +1 −1 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]);

0 comments on commit df4e23e

Please sign in to comment.