Some libraries, frameworks of configs might provide a strings to port and timeout params. Redis extension on PHP 7.4 throw an TypeError on that situation. For preventing this add typecasting (int)$this->options['port'] and (float)$this->options['timeout'] to the connect and pconnect methods.
Some libraries, frameworks of configs might provide a strings to port and timeout params. Redis extension on PHP 7.4 throw an TypeError on that situation. For preventing this add typecasting
(int)$this->options['port']
and(float)$this->options['timeout']
to theconnect
andpconnect
methods.