[tests] more strictness

This commit is contained in:
Shish
2024-01-20 19:47:26 +00:00
parent b60c3fe362
commit 8b797a9a31
28 changed files with 143 additions and 115 deletions

View File

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