Skip to content

Commit 93fa9f6

Browse files
committed
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
1 parent 4d699ef commit 93fa9f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/functionMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8737,7 +8737,7 @@
87378737
'Redis::zSize' => ['', 'key'=>'string'],
87388738
'Redis::zUnion' => ['__benevolent<Redis|array|false>', 'keys'=>'string[]', 'weights'=>'?array', 'options='=>'?array'],
87398739
'RedisArray::__construct' => ['void', 'name'=>'string'],
8740-
'RedisArray::__construct\'1' => ['void', 'hosts'=>'array<int, string>', 'opts='=>'array<string, string>'],
8740+
'RedisArray::__construct\'1' => ['void', 'hosts'=>'array<int, string>', 'opts='=>'array<string, mixed>'],
87418741
'RedisArray::_function' => ['string'],
87428742
'RedisArray::_hosts' => ['array'],
87438743
'RedisArray::_rehash' => ['', 'callable='=>'callable'],

0 commit comments

Comments
 (0)