Skip to content

Commit 2ccf831

Browse files
authored
🩹 Fix fallback ternary when passing items to build (#77)
1 parent e2a388e commit 2ccf831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Navi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function build(mixed $menu = null): self
6060

6161
$items = wp_get_nav_menu_items($this->menu);
6262

63-
$this->items = MenuBuilder::make()->build($items ?? []);
63+
$this->items = MenuBuilder::make()->build($items ?: []);
6464

6565
return $this;
6666
}

0 commit comments

Comments
 (0)