mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 21:52:21 +00:00
2.1.0 (2023-02-07) - PHP 8.2 compatibility
This commit is contained in:
parent
ef82313d4e
commit
3c7e20e364
11 changed files with 200 additions and 15 deletions
|
@ -11,6 +11,10 @@ namespace Resque\Job;
|
|||
*/
|
||||
class Factory implements FactoryInterface
|
||||
{
|
||||
public ?Job $job;
|
||||
public string $queue;
|
||||
public array $args;
|
||||
|
||||
/**
|
||||
* @param $className
|
||||
* @param array $args
|
||||
|
|
|
@ -174,7 +174,7 @@ class Job
|
|||
*/
|
||||
public function getInstance()
|
||||
{
|
||||
if (!is_null($this->instance)) {
|
||||
if (isset($this->instance) && !is_null($this->instance)) {
|
||||
return $this->instance;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Resque;
|
|||
|
||||
class Resque
|
||||
{
|
||||
public const VERSION = '2.0.3';
|
||||
public const VERSION = '2.1.0';
|
||||
|
||||
public const DEFAULT_INTERVAL = 5;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue