force type for connection parameter

This commit is contained in:
Julien Fastré 2021-04-27 23:20:49 +02:00 committed by Pol Dellaiera
parent 7fbb8a9fb0
commit 77943a69fb

View File

@ -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()