Skip to content

Commit

Permalink
Accept any callable as argument for addSplitItem in CliMenuBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
simonorono committed Aug 27, 2023
1 parent 6eb0f76 commit ea2986a
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 @@ -315,7 +315,7 @@ private function processIndividualShortcut(MenuItemInterface $item, callable $ca
}
}

public function addSplitItem(\Closure $callback) : self
public function addSplitItem(callable $callback) : self
{
$builder = new SplitItemBuilder($this->menu);

Expand Down

0 comments on commit ea2986a

Please sign in to comment.