Make sure port is read as int from environment

This commit is contained in:
2025-11-03 01:06:36 +01:00
parent a60b4b6ac2
commit d90f4386d9

View File

@@ -32,7 +32,7 @@ final readonly class RedisConfig
{
return new self(
host: $env->get(EnvKey::REDIS_HOST, 'redis'),
port: $env->get(EnvKey::REDIS_PORT, 6379),
port: $env->getInt(EnvKey::REDIS_PORT, 6379),
password: $env->get(EnvKey::REDIS_PASSWORD, null),
database: 0,
timeout: 1.0,