Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Dec 15, 2022
1 parent 3b31087 commit c89dd96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Scheduling/CallbackEvent.php
Expand Up @@ -184,7 +184,7 @@ public function getSummaryForDisplay()
*/
public function mutexName()
{
return 'framework/schedule-'.sha1($this->description);
return 'framework/schedule-'.sha1($this->description ?? '');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Console/Scheduling/ScheduleListCommand.php
Expand Up @@ -83,15 +83,15 @@ public function handle(Schedule $schedule)
$command = $event->command;
$description = $event->description;

if (! $this->output->isVerbose() && ! is_null($command)) {
if (! $this->output->isVerbose() && is_string($command)) {
$command = str_replace([Application::phpBinary(), Application::artisanBinary()], [
'php',
preg_replace("#['\"]#", '', Application::artisanBinary()),
], $event->command);
}

if ($event instanceof CallbackEvent) {
if (! is_null($event->description) && class_exists($event->description)) {
if (is_string($event->description) && class_exists($event->description)) {
$command = $event->description;
$description = '';
} else {
Expand Down

0 comments on commit c89dd96

Please sign in to comment.