From fe3033e36ff583598e443cb85aa53b031c2551a4 Mon Sep 17 00:00:00 2001 From: Vova Yatsyuk Date: Thu, 30 Nov 2017 13:24:06 +0200 Subject: [PATCH 1/2] Fixed invalid parameter type in phpdoc block --- app/code/Magento/Theme/Block/Html/Topmenu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Theme/Block/Html/Topmenu.php b/app/code/Magento/Theme/Block/Html/Topmenu.php index b1b22e06d7172..1052eb604f62a 100644 --- a/app/code/Magento/Theme/Block/Html/Topmenu.php +++ b/app/code/Magento/Theme/Block/Html/Topmenu.php @@ -331,7 +331,7 @@ protected function _getMenuItemClasses(\Magento\Framework\Data\Tree\Node $item) /** * Add identity * - * @param array $identity + * @param string $identity * @return void */ public function addIdentity($identity) From 80520c5b7d5579603a514e5c45e47ec2cce40000 Mon Sep 17 00:00:00 2001 From: Vova Yatsyuk Date: Thu, 30 Nov 2017 15:56:52 +0200 Subject: [PATCH 2/2] Add array type, as it is allowed to use too --- app/code/Magento/Theme/Block/Html/Topmenu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Theme/Block/Html/Topmenu.php b/app/code/Magento/Theme/Block/Html/Topmenu.php index 1052eb604f62a..7747576988077 100644 --- a/app/code/Magento/Theme/Block/Html/Topmenu.php +++ b/app/code/Magento/Theme/Block/Html/Topmenu.php @@ -331,7 +331,7 @@ protected function _getMenuItemClasses(\Magento\Framework\Data\Tree\Node $item) /** * Add identity * - * @param string $identity + * @param string|array $identity * @return void */ public function addIdentity($identity)