We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa97f5d commit 6b54af7Copy full SHA for 6b54af7
1 file changed
Menu/Builder.php
@@ -65,11 +65,19 @@ private function resolve(array $item, array $keys)
65
66
public function isCurrentRoot(?string $root): bool
67
{
68
+ if (is_null($root)) {
69
+ return false;
70
+ }
71
+
72
return $this->getCurrentAttribute('_menu_root') === $root;
73
}
74
75
public function isCurrentBranch(?string $branch): bool
76
77
+ if (is_null($branch)) {
78
79
80
81
return $this->getCurrentAttribute('_menu_branch') === $branch;
82
83
0 commit comments