Skip to content

Commit c9569ea

Browse files
committed
Merge pull request #3 from atorres757/update_one
Updated methods in ResqueScheduler to static to prevent errors.
2 parents a446eb1 + 54ec2f4 commit c9569ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ResqueScheduler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private static function getTimestamp($timestamp)
160160
* Defaults to now.
161161
* @return int|false UNIX timestamp, or false if nothing to run.
162162
*/
163-
public function nextDelayedTimestamp($at = null)
163+
public static function nextDelayedTimestamp($at = null)
164164
{
165165
if ($at === null) {
166166
$at = time();
@@ -183,7 +183,7 @@ public function nextDelayedTimestamp($at = null)
183183
* @param DateTime|int $timestamp Instance of DateTime or UNIX timestamp.
184184
* @return array Matching job at timestamp.
185185
*/
186-
public function nextItemForTimestamp($timestamp)
186+
public static function nextItemForTimestamp($timestamp)
187187
{
188188
$timestamp = self::getTimestamp($timestamp);
189189
$key = 'delayed:' . $timestamp;

0 commit comments

Comments
 (0)