From cdfe830a2323cdeeb1b682aeb2a222a12f3ff59f Mon Sep 17 00:00:00 2001 From: Michael Dyrynda Date: Tue, 17 Nov 2020 15:28:19 +1030 Subject: [PATCH] Update handling of closure/callback task identification @see https://github.com/laravel/framework/pull/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. --- src/TaskIdentifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TaskIdentifier.php b/src/TaskIdentifier.php index 3b84f19..9857236 100644 --- a/src/TaskIdentifier.php +++ b/src/TaskIdentifier.php @@ -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; } }