From 05d8bf6b5460964b4ed1c7637a9d5599827e0519 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 25 Feb 2019 07:11:35 -0500 Subject: [PATCH] Fix wrong use of array_shift in Core\Worker --- src/Core/Worker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Worker.php b/src/Core/Worker.php index 0a97c11c13..7b661d863f 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -850,7 +850,7 @@ class Worker } if (!empty($waiting)) { - $priority = array_shift(array_keys($waiting)); + $priority = array_keys($waiting)[0]; Logger::info('No underassigned priority found, now taking the highest priority.', ['priority' => $priority]); return $priority; }