From 48e2963ac7dd74ee85e05c7176c660500da19509 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 16 Oct 2021 21:07:31 -0400 Subject: [PATCH] Remove unused variable in Core\Worker::defer --- src/Core/Worker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Worker.php b/src/Core/Worker.php index d43d8c7281..5c23d64456 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -1378,8 +1378,9 @@ class Worker * Defers the current worker entry * * @return boolean had the entry been deferred? + * @throws \Exception */ - public static function defer() + public static function defer(): bool { $queue = DI::app()->getQueue(); @@ -1387,7 +1388,6 @@ class Worker return false; } - $retrial = $queue['retrial']; $id = $queue['id']; $priority = $queue['priority']; -- 2.39.5