From 5b43c7c0eaeb3aedbe0bdca2e9d42e3932ddb573 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Fri, 1 Mar 2024 12:02:39 +0100 Subject: [PATCH] Initialize children property --- .../framework/src/Framework/Features/Navigation/NavItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/framework/src/Framework/Features/Navigation/NavItem.php b/packages/framework/src/Framework/Features/Navigation/NavItem.php index 77047479849..31ccb67b004 100644 --- a/packages/framework/src/Framework/Features/Navigation/NavItem.php +++ b/packages/framework/src/Framework/Features/Navigation/NavItem.php @@ -40,7 +40,7 @@ class NavItem implements Stringable protected string $identifier; /** @var array<\Hyde\Framework\Features\Navigation\NavItem> */ - protected array $children; + protected array $children = []; /** * Create a new navigation menu item.