From 8b51bfbaf5ca0b4dc1ec42898557cbfca43a66b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 27 Apr 2021 23:20:49 +0200 Subject: [PATCH] force type for connection parameter --- .../Redis/RedisConnectionFactory.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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']; }