Skip to content

Commit

Permalink
fixed error: Expected type 'object'. Found 'array'.intelephense(1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWebLab committed May 17, 2021
1 parent 938969c commit 85c62a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class bootstrap_5_wp_nav_menu_walker extends Walker_Nav_menu
'dropdown-menu-xxl-end'
];

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

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

Expand Down

0 comments on commit 85c62a6

Please sign in to comment.