[2.0] Changing Collection#removeElement return type to be consistent with Collection#remove
This commit is contained in:
parent
1e0589928a
commit
5bbc2a9e58
@ -120,10 +120,11 @@ class Collection implements Countable, IteratorAggregate, ArrayAccess
|
||||
{
|
||||
$key = array_search($element, $this->_elements, true);
|
||||
if ($key !== false) {
|
||||
$removed = $this->_elements[$key];
|
||||
unset($this->_elements[$key]);
|
||||
return true;
|
||||
return $removed;
|
||||
}
|
||||
return false;
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user