Skip to content

Commit 6515744

Browse files
committed
Update CommandHelperTrait.php
1 parent 5eaca60 commit 6515744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mako/reactor/traits/CommandHelperTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ protected function select(
213213
bool $returnKey = true,
214214
bool $allowMultiple = false,
215215
bool $allowEmptySelection = false,
216-
?callable $optionFormatter = null
216+
callable $optionFormatter = static function (mixed $option): string { return (string) $option; }
217217
): mixed {
218218
return (new Select(
219219
$this->input,

0 commit comments

Comments
 (0)