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
When trying to pass a delayed job to queue when the client is set as phpredis, exception Symfony\Component\Debug\Exception\FatalThrowableError
is thrown:
Type error: Argument 2 passed to Illuminate\Redis\Connections\PhpRedisConnection::zadd() must be of the type array, integer given,
This is because PhpRedisConnection accepts array as second parameter:
/**
* Add one or more members to a sorted set or update its score if it already exists.
*
* @param string $key
* @param array $membersAndScoresDictionary
* @return int
*/
public function zadd($key, array $membersAndScoresDictionary)
{
$arguments = [];
foreach ($membersAndScoresDictionary as $member => $score) {
$arguments[] = $score;
$arguments[] = $member;
}
return $this->command('zadd', ...$arguments);
}
Description:
When trying to pass a delayed job to queue when the client is set as
phpredis
, exceptionSymfony\Component\Debug\Exception\FatalThrowableError
is thrown:
This is because
PhpRedisConnection
accepts array as second parameter:But integer (timestamp) is passed in
RedisQueue
:Steps To Reproduce:
client
indatabase.php
config file asphpredis
The text was updated successfully, but these errors were encountered: