You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP outputs deprecation notices due to undefined class properties that are later assigned.
PHP Deprecated: Creation of dynamic property Resque_Worker::$logLevel is deprecated in
...phplib\vendor\resque\php-resque\bin\resque on line 173
$worker->logLevel = $logLevel;
PHP Deprecated: Creation of dynamic property Resque_Redis::$driver is deprecated in
...phplib\vendor\resque\php-resque\lib\Resque\Redis.php on line 134
$this->driver = new Credis_Client($host, $port, $timeout, $persistent);
and probably elsewhere.
Possible Solution
declare the class properties, eg:
class Resque_Worker {
...
public $logLevel
}
class Resque_Redis
{
...
private $driver; // unsure what visibility is actually needed
}
Context
In this instance I am setting up a worker script that includes vendor/bin/resque, eg:
I love this package, for me it always works very well for what I need without having to use frameworks or the like. It would be great to be updated to php 8.2! Congratulations to the developer anyway!
Expected Behavior
No deprecation notices
Current Behavior
PHP outputs deprecation notices due to undefined class properties that are later assigned.
and probably elsewhere.
Possible Solution
declare the class properties, eg:
Context
In this instance I am setting up a worker script that includes vendor/bin/resque, eg:
My Environment
This should happen regardless of environment
The text was updated successfully, but these errors were encountered: