diff --git a/lib/ResqueScheduler.php b/lib/ResqueScheduler.php index d744c5b..644ba4b 100644 --- a/lib/ResqueScheduler.php +++ b/lib/ResqueScheduler.php @@ -223,7 +223,7 @@ public static function nextDelayedTimestamp($at = null) $at = self::getTimestamp($at); } - $items = Resque::redis()->zrangebyscore('delayed_queue_schedule', '-inf', $at, 'LIMIT', 0, 1); + $items = Resque::redis()->zrangebyscore('delayed_queue_schedule', '-inf', $at, array('limit' => array(0, 1))); if (!empty($items)) { return $items[0]; }