Fixed compatibility with \Redis::script()#74
Conversation
|
According to the documentation the second argument is optional. https://github.com/phpredis/phpredis#script |
|
Yes, you're right. I actually getting this warning on Debian with php5-redis 2.2.5-1: |
|
Oh it seems they updated the API with PHP Argument Unpacking (https://wiki.php.net/rfc/argument_unpacking). Which means you should change the function to something like this: Of course you would have to raise the required PHP version in composer.json to 5.6. However this seems completely useless. The question here is why Kdyby overrides these methods in the first place since it would be equivalent if the methods were not there. Unfortunately I do not know this. |
|
What happens if you simply remove the script method from |
|
It is solution for me, but this method is defined also in IRedisDriver and that interface is used in Nette DI extension. So it would be BC break. |
|
@her-ur Which DI extension use this interface? |
No description provided.