diff --git a/src/Bundle/ChillMainBundle/Redis/RedisConnectionFactory.php b/src/Bundle/ChillMainBundle/Redis/RedisConnectionFactory.php index 51f2d2c6d..89d877405 100644 --- a/src/Bundle/ChillMainBundle/Redis/RedisConnectionFactory.php +++ b/src/Bundle/ChillMainBundle/Redis/RedisConnectionFactory.php @@ -26,23 +26,23 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; */ class RedisConnectionFactory implements EventSubscriberInterface { - protected $host; - - protected $port; - - protected $timeout; - + protected string $host; + + protected int $port; + /** * * @var Redis */ - protected $redis; - + protected ChillRedis $redis; + + protected int $timeout; + public function __construct($parameters) { $this->host = $parameters['host']; - $this->port = $parameters['port']; - $this->timeout = $parameters['timeout']; + $this->port = (int) $parameters['port']; + $this->timeout = (int) $parameters['timeout']; }