Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache [Symfony\Component\Debug\Exception\ContextErrorException] Warning: Declaration of Snc\RedisBundle\Client\Phpredis\Client::append() should be compatible with Redis::append($key, $value) Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception [RuntimeException] An error occurred when executing the "'cache:clear --n o-warmup'" command: [Symfony\Component\Debug\Exception\ContextErrorException] Warning: Declaration of Snc\RedisBundle\Client\Phpredis\Client::append() should be compatible with Redis::append($key, $value) |
1 answer
This is due to the features of the Snc\RedisBundle :
public function append() { return $this->call('append', func_get_args()); } This implementation does not comply with the method signature, proxying calls with func_get_args .
At the same time, PHP Redis , since version 4.0, has changed method signatures.
You can either find / wait for a more correct implementation,
either roll back the PHP Redis version to 3.1.x,
or try to disable the warning level:
error_reporting(error_reporting() & ~E_WARNING & ~E_STRICT) - How to find and install Redis 3.1. *, If there are no such versions on the site of download.redis.io/releases - Rupert Smith
- From pecl , you are watching redis itself, not its php driver - vp_arth
|