Make sure port is read as int from environment
This commit is contained in:
@@ -32,7 +32,7 @@ final readonly class RedisConfig
|
|||||||
{
|
{
|
||||||
return new self(
|
return new self(
|
||||||
host: $env->get(EnvKey::REDIS_HOST, 'redis'),
|
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),
|
password: $env->get(EnvKey::REDIS_PASSWORD, null),
|
||||||
database: 0,
|
database: 0,
|
||||||
timeout: 1.0,
|
timeout: 1.0,
|
||||||
|
|||||||
Reference in New Issue
Block a user