From a8053596ef347cf83526436f575cbb0aabdf82e6 Mon Sep 17 00:00:00 2001 From: mscherer Date: Sat, 20 Dec 2025 09:03:19 +0100 Subject: [PATCH] Fix PHP 8.5 deprecation: SplObjectStorage::attach() Replace deprecated SplObjectStorage::attach() with array syntax which uses offsetSet() internally. The attach() method is deprecated in PHP 8.5. --- src/View/Helper/MenuHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/Helper/MenuHelper.php b/src/View/Helper/MenuHelper.php index 86e98cc..191ea0a 100644 --- a/src/View/Helper/MenuHelper.php +++ b/src/View/Helper/MenuHelper.php @@ -572,7 +572,7 @@ protected function _findCurrentItem(ItemInterface $item, MatcherInterface $match protected function _addMenu(ItemInterface $menu, array $options): void { $this->_menus[$menu->getName()] = $menu; - $this->_menuConfigurations->attach($menu, $options); + $this->_menuConfigurations[$menu] = $options; } /**