[tests] more strictness
This commit is contained in:
@ -70,7 +70,7 @@ class EventTracingCache implements CacheInterface
|
||||
/**
|
||||
* @param string[] $keys
|
||||
* @param mixed $default
|
||||
* @return mixed[]
|
||||
* @return iterable<mixed>
|
||||
*/
|
||||
public function getMultiple($keys, $default = null)
|
||||
{
|
||||
@ -126,10 +126,10 @@ function loadCache(?string $dsn): CacheInterface
|
||||
} elseif ($url['scheme'] == "redis") {
|
||||
$redis = new \Predis\Client([
|
||||
'scheme' => 'tcp',
|
||||
'host' => $url['host'],
|
||||
'port' => $url['port'],
|
||||
'username' => $url['user'],
|
||||
'password' => $url['pass'],
|
||||
'host' => $url['host'] ?? "127.0.0.1",
|
||||
'port' => $url['port'] ?? 6379,
|
||||
'username' => $url['user'] ?? null,
|
||||
'password' => $url['pass'] ?? null,
|
||||
], ['prefix' => 'shm:']);
|
||||
$c = new \Naroga\RedisCache\Redis($redis);
|
||||
}
|
||||
|
Reference in New Issue
Block a user