mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
replace is_object with is_array when reserving jobs since Resque::pop actually returns an array instead of an object
This commit is contained in:
parent
cd47df2458
commit
458fd6488b
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue