Fixed typo in Util\Collection
This commit is contained in:
parent
fd7fcf215b
commit
7d4e88c941
@ -25,7 +25,7 @@ class Collection implements \IteratorAggregate, \Countable
|
||||
public function add($element)
|
||||
{
|
||||
if ($this->class && !$element instanceof $this->class) {
|
||||
throw new \InvalidArgument(sprintf('Cannot add class "%s" because it is not an instance of "%s"', get_class($element), $class));
|
||||
throw new \InvalidArgumentException(sprintf('Cannot add class "%s" because it is not an instance of "%s"', get_class($element), $this->class));
|
||||
}
|
||||
|
||||
$getter = $this->getter;
|
||||
|
Loading…
Reference in New Issue
Block a user