Skip to content

Commit 3f3ef35

Browse files
ENGCOM-5686: Correct the return of type of function _columnBrake in module-theme block topMenu.php #24252
- Merge Pull Request #24252 from Krielkip/magento2:2.3-develop - Merged commits: 1. 60ea2be 2. e9dd493
2 parents 484cc98 + e9dd493 commit 3f3ef35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Theme/Block/Html/Topmenu.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ protected function _countItems($items)
133133
*
134134
* @param Menu $items
135135
* @param int $limit
136-
* @return array|void
136+
* @return array
137137
*
138138
* @todo: Add Depth Level limit, and better logic for columns
139139
*/
140140
protected function _columnBrake($items, $limit)
141141
{
142142
$total = $this->_countItems($items);
143143
if ($total <= $limit) {
144-
return;
144+
return [];
145145
}
146146

147147
$result[] = ['total' => $total, 'max' => (int)ceil($total / ceil($total / $limit))];

0 commit comments

Comments
 (0)