From 0af0a712f19f84298470a608d337512800bda7c7 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 8 Sep 2026 16:31:35 +0200 Subject: [PATCH] Fix the type of the options of the RedisArray constructor The options may have any type: for example, connect_timeout and read_timeout are numbers, lazy_connect and consistent are booleans, function and distributor are callables, previous is an array. See the phpredis documentation of RedisArray: https://github.com/phpredis/phpredis/blob/develop/arrays.md and the phpredis stub of the constructor: https://github.com/phpredis/phpredis/blob/develop/redis_array.stub.php --- resources/functionMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functionMap.php b/resources/functionMap.php index 20d79d0bdcc..d1e03dcb327 100644 --- a/resources/functionMap.php +++ b/resources/functionMap.php @@ -8737,7 +8737,7 @@ 'Redis::zSize' => ['', 'key'=>'string'], 'Redis::zUnion' => ['__benevolent', 'keys'=>'string[]', 'weights'=>'?array', 'options='=>'?array'], 'RedisArray::__construct' => ['void', 'name'=>'string'], -'RedisArray::__construct\'1' => ['void', 'hosts'=>'array', 'opts='=>'array'], +'RedisArray::__construct\'1' => ['void', 'hosts'=>'array', 'opts='=>'array'], 'RedisArray::_function' => ['string'], 'RedisArray::_hosts' => ['array'], 'RedisArray::_rehash' => ['', 'callable='=>'callable'],