Skip to content

Commit 85c62a6

Browse files
committed
fixed error: Expected type 'object'. Found 'array'.intelephense(1006)
1 parent 938969c commit 85c62a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class bootstrap_5_wp_nav_menu_walker extends Walker_Nav_menu
1818
'dropdown-menu-xxl-end'
1919
];
2020

21-
function start_lvl(&$output, $depth = 0, $args = array())
21+
function start_lvl(&$output, $depth = 0, $args = null)
2222
{
2323
$dropdown_menu_class[] = '';
2424
foreach($this->current_item->classes as $class) {
@@ -31,7 +31,7 @@ function start_lvl(&$output, $depth = 0, $args = array())
3131
$output .= "\n$indent<ul class=\"dropdown-menu$submenu " . esc_attr(implode(" ",$dropdown_menu_class)) . " depth_$depth\">\n";
3232
}
3333

34-
function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0)
34+
function start_el(&$output, $item, $depth = 0, $args = null, $id = 0)
3535
{
3636
$this->current_item = $item;
3737

0 commit comments

Comments
 (0)