lib: Fix Navigation::addItem()

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-27 12:22:41 +02:00
parent 0cedcf1fcd
commit ed9a6aa39d
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class Navigation implements ArrayAccess, Countable, IteratorAggregate
* @return $this
* @throws InvalidArgumentException If the item argument is invalid
*/
public function addItem(NavigationItem $item)
public function addItem($item)
{
if (! $item instanceof NavigationItem) {
if (! is_array($item)) {