amphp / redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

Home Page:https://amphp.org/redis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug on evalSha function

vicla31 opened this issue · comments

commented

Hi,

There is a bug on evalSha function in lib/Redis.php (l. 1754)
PHP Warning: array_merge(): Argument #3 is not an array in vendor/amphp/redis/lib/Redis.php on line 1755
PHP Fatal error: Uncaught TypeError: Argument 1 passed to Amp\Redis\Client::send() must be of the type array, null given, called in vendor/amphp/redis/lib/Redis.php on line 1755 and defined in vendor/amphp/redis/lib/Client.php:111

Fix by casting type array on third argument : (array) sizeof((array) $keys)
Thank you

@vicla31 Do you want to provide a pull request?

See #47 for a fix.

Fixed via #48.