Fix wrong use of array_shift in Core\Worker

This commit is contained in:
Hypolite Petovan 2019-02-25 07:11:35 -05:00
parent f597f3b378
commit 05d8bf6b54

View file

@ -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;
}