Navigation::fromArray(): pass $name only as string to addItem()
fixes #12923
This commit is contained in:
parent
b16c64443b
commit
00880710ed
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue