Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c82cdaa

Browse files
authored
Update FunctionSignatureMap.php
`Redis::mget()` and `Redis::mset()` both expect one argument based on the stubs: https://github.com/phpredis/phpredis/blob/f5ed17048bde7c9e8ada04005b0773bbd99e5abf/redis.stub.php#L3033 But we got the following error in our CI before my changes: ``` test.php:10 PhanParamTooManyInternal Call with 1 arg(s) to \Redis::mget() which only takes 0 arg(s). This would throw an ArgumentCountError. test.php:11 PhanParamTooManyInternal Call with 1 arg(s) to \Redis::mset() which only takes 0 arg(s). This would throw an ArgumentCountError. ``` Relates to #5523
1 parent d92a58b commit c82cdaa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Phan/Language/Internal/FunctionSignatureMap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6559,10 +6559,10 @@
65596559
'Redis::mGet' => ['array', 'keys'=>'string[]'],
65606560
'Redis::mSet' => ['bool', 'pairs'=>'array'],
65616561
'Redis::mSetNx' => ['bool', 'pairs'=>'array'],
6562-
'Redis::mget' => ['\Redis|array|false'],
6562+
'Redis::mget' => ['\Redis|array|false', 'options='=>'array'],
65636563
'Redis::migrate' => ['bool', 'host'=>'string', 'port'=>'int', 'key'=>'string|string[]', 'db'=>'int', 'timeout'=>'int', 'copy='=>'bool', 'replace='=>'bool'],
65646564
'Redis::move' => ['bool', 'key'=>'string', 'dbindex'=>'int'],
6565-
'Redis::mset' => ['\Redis|bool'],
6565+
'Redis::mset' => ['\Redis|bool', 'options='=>'array'],
65666566
'Redis::msetnx' => ['\Redis|bool'],
65676567
'Redis::multi' => ['Redis', 'mode='=>'int'],
65686568
'Redis::object' => ['string|int|false', 'field'=>'string', 'key'=>'string'],

0 commit comments

Comments
 (0)