Skip to content

Commit 02b428e

Browse files
committed
Fix the walker not corresponding to the native walker
1 parent b2ec505 commit 02b428e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

inc/Helpers/Accessible_Menu_Walker.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
namespace BEA\Theme\Framework\Helpers;
44

5+
use Walker_Nav_Menu;
6+
57
class Accessible_Menu_Walker extends Walker_Nav_Menu {
68

79
/**
810
* @param $output
911
* @param int $depth
1012
* @param array $args
1113
*/
12-
public function start_lvl( &$output, $depth = 0, $args = [] ) {
14+
public function start_lvl( &$output, $depth = 0, $args = null ): void {
1315
$indent = str_repeat( "\t", $depth );
1416
$output .= "\n$indent<div class='amenu__panel'><ul class='sub-menu amenu__sub-menu'>\n";
1517
}
@@ -19,7 +21,7 @@ public function start_lvl( &$output, $depth = 0, $args = [] ) {
1921
* @param int $depth
2022
* @param array $args
2123
*/
22-
public function end_lvl( &$output, $depth = 0, $args = [] ) {
24+
public function end_lvl( &$output, $depth = 0, $args = null ): void {
2325
$indent = str_repeat( "\t", $depth );
2426
$output .= "$indent</ul></div>\n";
2527
}

0 commit comments

Comments
 (0)