From 77943a69fb07043a0da79655cb42f193c32d81a3 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 --- .../ChillMainBundle/Redis/RedisConnectionFactory.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Redis/RedisConnectionFactory.php b/src/Bundle/ChillMainBundle/Redis/RedisConnectionFactory.php index 61eea1931..602a0ff2a 100644 --- a/src/Bundle/ChillMainBundle/Redis/RedisConnectionFactory.php +++ b/src/Bundle/ChillMainBundle/Redis/RedisConnectionFactory.php @@ -18,22 +18,22 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; class RedisConnectionFactory implements EventSubscriberInterface { - protected $host; + protected string $host; - protected $port; + protected int $port; /** * @var Redis */ - protected $redis; + protected ChillRedis $redis; - protected $timeout; + 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']; } public function create()