2.1.0 (2023-02-07) - PHP 8.2 compatibility

This commit is contained in:
Daniel Mason 2023-02-07 02:19:09 +00:00
parent ef82313d4e
commit 3c7e20e364
11 changed files with 200 additions and 15 deletions

View file

@ -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

View file

@ -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;
}

View file

@ -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;