Skip to content

Commit

Permalink
not require for in compoments
Browse files Browse the repository at this point in the history
  • Loading branch information
salahhusa9 committed Jul 10, 2023
1 parent 943037d commit a234387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Components/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Menu extends Component
{
public MenuMenu $menu;

public function __construct(public string $for)
public function __construct(public $for = null)
{
$this->menu = FacadesMenu::get($for);
}
Expand Down

0 comments on commit a234387

Please sign in to comment.