Skip to content

Commit

Permalink
Update handling of closure/callback task identification
Browse files Browse the repository at this point in the history
@see laravel/framework#34999

The return string was changed from Closure to Callback in order to support PHP 8, which in turn broke how we were identifying closure tasks.
  • Loading branch information
michaeldyrynda committed Nov 17, 2020
1 parent 3302466 commit cdfe830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TaskIdentifier.php
Expand Up @@ -27,7 +27,7 @@ public function __invoke($task)
return static::TYPE_CLOSURE;
}

if (Str::is($task->getSummaryForDisplay(), 'Closure')) {
if (in_array($task->getSummaryForDisplay(), ['Callback', 'Closure'])) {
return static::TYPE_CLOSURE;
}
}
Expand Down

0 comments on commit cdfe830

Please sign in to comment.