function RedisCaster::castRedisArray
File
-
vendor/
symfony/ var-dumper/ Caster/ RedisCaster.php, line 76
Class
- RedisCaster
- Casts Redis class from ext-redis to array representation.
Namespace
Symfony\Component\VarDumper\CasterCode
public static function castRedisArray(\RedisArray $c, array $a, Stub $stub, bool $isNested) : array {
$prefix = Caster::PREFIX_VIRTUAL;
return $a + [
$prefix . 'hosts' => $c->_hosts(),
$prefix . 'function' => ClassStub::wrapCallable($c->_function()),
$prefix . 'lastError' => $c->getLastError(),
$prefix . 'options' => self::getRedisOptions($c),
];
}