From c1f94f5e617c4a58828aae7862be530c86bf7aa2 Mon Sep 17 00:00:00 2001 From: Alexandre Saelens Date: Tue, 9 Apr 2024 08:53:21 +1200 Subject: [PATCH] Allow for empty menu title --- src/MenuItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MenuItem.php b/src/MenuItem.php index 6b4d078..115a9cb 100644 --- a/src/MenuItem.php +++ b/src/MenuItem.php @@ -232,7 +232,7 @@ public function __get($field) /** * @return mixed */ - public function getTitle(): string + public function getTitle(): ?string { return $this->MenuTitle; }