From 8b6f1aa681a2d349c053b302fb67711289d769a2 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 8 Sep 2026 16:31:35 +0200 Subject: [PATCH 1/2] 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 1b41e878357..6b4aaa1c7f4 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'], From 672a020ec0d6819169b3c6338e5324df19d2467c Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 17 Sep 2026 14:03:24 +0200 Subject: [PATCH 2/2] Allow passing null for $opts to RedisArray constructor --- resources/functionMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functionMap.php b/resources/functionMap.php index 6b4aaa1c7f4..22428f1911e 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'],