Skip to content

Commit

Permalink
Fix return type & callback type hints for Redis::subscribe()
Browse files Browse the repository at this point in the history
* The method accepts an array or a string for the $callback parameter
* The methods returns any non-null value from the callback to the caller
* See: https://github.com/phpredis/phpredis#subscribe
  • Loading branch information
hollodotme authored and ondrejmirtes committed Jun 24, 2020
1 parent 4cbb589 commit 73aede3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Reflection/SignatureMap/functionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -9402,7 +9402,7 @@
'Redis::sRemove' => ['int', 'key'=>'string', 'member1'=>'string', '...other_members='=>'string'],
'Redis::sScan' => ['array|bool', 'key'=>'string', '&iterator'=>'int', 'pattern='=>'string', 'count='=>'int'],
'Redis::strLen' => ['int', 'key'=>'string'],
'Redis::subscribe' => ['', 'channels'=>'array', 'callback'=>'string'],
'Redis::subscribe' => ['mixed|null', 'channels'=>'array', 'callback'=>'string|array'],
'Redis::substr' => ['', 'key'=>'string', 'start'=>'int', 'end'=>'int'],
'Redis::sUnion' => ['array', 'key'=>'string', '...other_keys='=>'string'],
'Redis::sUnionStore' => ['int', 'dstKey'=>'string', 'key'=>'string', '...other_keys='=>'string'],
Expand Down

0 comments on commit 73aede3

Please sign in to comment.