Skip to content

Commit 6eb0f76

Browse files
committed
Accept any callable as argument for addSubMenu in CliMenuBuilder
1 parent 0cdb162 commit 6eb0f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Builder/CliMenuBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function addAsciiArt(string $art, string $position = AsciiArtItem::POSITI
205205
return $this;
206206
}
207207

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

0 commit comments

Comments
 (0)