Skip to content

Commit

Permalink
fix: Explicit nullable type
Browse files Browse the repository at this point in the history
Issue #1461
  • Loading branch information
lee-to committed Jan 9, 2025
1 parent 49ea4b6 commit 5b411ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MenuGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion src/MenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5b411ea

Please sign in to comment.