Magento 2.3 Topmenu override declaration error
-
06-03-2021 - |
Вопрос
Declaration of _getHtml
Should be compatible with Magento\Theme\Block\Html\Topmenu::_getHtml(Magento\Framework\Data\Tree\Node $menuTree, $childrenWrapClass, $limit, array $colBrakes = Array)
Решение
Ibnab\MegaMenu\Block\Html\Topmega.php
protected function _getHtml(
\Magento\Framework\Data\Tree\Node $menuTree,
$childrenWrapClass,
$limit,
array $colBrakes = []
)
Also replace :
$colStops = null; to $colStops = [];
Не связан с magento.stackexchange