We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0cdb162 + ea2986a commit 835c28eCopy full SHA for 835c28e
src/Builder/CliMenuBuilder.php
@@ -205,7 +205,7 @@ public function addAsciiArt(string $art, string $position = AsciiArtItem::POSITI
205
return $this;
206
}
207
208
- public function addSubMenu(string $text, \Closure $callback) : self
+ public function addSubMenu(string $text, callable $callback) : self
209
{
210
$builder = self::newSubMenu($this->terminal);
211
@@ -315,7 +315,7 @@ private function processIndividualShortcut(MenuItemInterface $item, callable $ca
315
316
317
318
- public function addSplitItem(\Closure $callback) : self
+ public function addSplitItem(callable $callback) : self
319
320
$builder = new SplitItemBuilder($this->menu);
321
0 commit comments