Skip to content

Commit

Permalink
Accept any callable as argument for addSubMenu in CliMenuBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
simonorono committed Aug 27, 2023
1 parent 0cdb162 commit 6eb0f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder/CliMenuBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function addAsciiArt(string $art, string $position = AsciiArtItem::POSITI
return $this;
}

public function addSubMenu(string $text, \Closure $callback) : self
public function addSubMenu(string $text, callable $callback) : self
{
$builder = self::newSubMenu($this->terminal);

Expand Down

0 comments on commit 6eb0f76

Please sign in to comment.