Skip to content

Commit

Permalink
Fix running schedule test on CallbackEvents (#38146)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivernybroe committed Jul 27, 2021
1 parent cf26e13 commit 97beb00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Scheduling/ScheduleTestCommand.php
Expand Up @@ -33,7 +33,7 @@ public function handle(Schedule $schedule)
$commandNames = [];

foreach ($commands as $command) {
$commandNames[] = $command->command;
$commandNames[] = $command->command ?? $command->getSummaryForDisplay();
}

$index = array_search($this->choice('Which command would you like to run?', $commandNames), $commandNames);
Expand Down

0 comments on commit 97beb00

Please sign in to comment.