From 85c62a69afdbd60c84275c695dac0cd282bf0527 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 17 May 2021 11:49:40 +0800 Subject: [PATCH] fixed error: Expected type 'object'. Found 'array'.intelephense(1006) --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index bb43180..e98ea88 100644 --- a/functions.php +++ b/functions.php @@ -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) { @@ -31,7 +31,7 @@ function start_lvl(&$output, $depth = 0, $args = array()) $output .= "\n$indent