Navigation::fromArray(): pass $name only as string to addItem()

fixes #12923
This commit is contained in:
Alexander A. Klimov 2016-10-18 18:06:51 +02:00
parent b16c64443b
commit 00880710ed
1 changed files with 1 additions and 1 deletions

View File

@ -565,7 +565,7 @@ class Navigation implements ArrayAccess, Countable, IteratorAggregate
{ {
$navigation = new static(); $navigation = new static();
foreach ($array as $name => $properties) { foreach ($array as $name => $properties) {
$navigation->addItem($name, $properties); $navigation->addItem((string) $name, $properties);
} }
return $navigation; return $navigation;