From 5b411eaec29f2507a7be2d8eb8a9ed5f6b0d426c Mon Sep 17 00:00:00 2001 From: LT Date: Thu, 9 Jan 2025 11:00:10 +0300 Subject: [PATCH] fix: Explicit nullable type Issue #1461 --- src/MenuGroup.php | 2 +- src/MenuItem.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MenuGroup.php b/src/MenuGroup.php index d522e7c..0d4aaa1 100644 --- a/src/MenuGroup.php +++ b/src/MenuGroup.php @@ -17,7 +17,7 @@ class MenuGroup extends MenuElement public function __construct( Closure|string $label, protected iterable $items = [], - string $icon = null, + ?string $icon = null, ) { parent::__construct(); diff --git a/src/MenuItem.php b/src/MenuItem.php index 063a3a2..cd8f249 100644 --- a/src/MenuItem.php +++ b/src/MenuItem.php @@ -33,7 +33,7 @@ class MenuItem extends MenuElement final public function __construct( Closure|string $label, protected Closure|MenuFillerContract|string $filler, - string $icon = null, + ?string $icon = null, Closure|bool $blank = false ) { parent::__construct();