diff --git a/lib/Resque.php b/lib/Resque.php index d429ae5..c5fe038 100644 --- a/lib/Resque.php +++ b/lib/Resque.php @@ -73,7 +73,7 @@ class Resque * return it. * * @param string $queue The name of the queue to fetch an item from. - * @return object Decoded item from the queue. + * @return array Decoded item from the queue. */ public static function pop($queue) { @@ -113,7 +113,7 @@ class Resque 'args' => $args, )); } - + return $result; } diff --git a/lib/Resque/Job.php b/lib/Resque/Job.php index 257a3a3..654271a 100644 --- a/lib/Resque/Job.php +++ b/lib/Resque/Job.php @@ -37,7 +37,7 @@ class Resque_Job * Instantiate a new instance of a job. * * @param string $queue The queue that the job belongs to. - * @param object $payload Object containing details of the job. + * @param array $payload array containing details of the job. */ public function __construct($queue, $payload) { @@ -84,7 +84,7 @@ class Resque_Job public static function reserve($queue) { $payload = Resque::pop($queue); - if(!is_object($payload)) { + if(!is_array($payload)) { return false; }