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();