0
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)                    
0

1 ответ 1

0

Тому виной особенности реализации Snc\RedisBundle:

public function append()
{
    return $this->call('append', func_get_args());
}

Эта реализация не соблюдает сигнатуру методов, проксируя вызовы с помощью func_get_args.

В то же время PHP Redis, начиная с версии 4.0 изменил сигнатуры методов.

Вы можете либо найти/дождаться более корректную реализацию,
либо откатить версию PHP Redis до 3.1.x,
либо попробовать отключить уровень предупреждений:

error_reporting(error_reporting() & ~E_WARNING & ~E_STRICT)

Github Issue

2
  • Как же найти и установить Redis 3.1.*, если на оф сайте нет таких версий download.redis.io/releases 23 июл 2018 в 8:09
  • Из pecl, вы смотрите сам redis, а не его php драйвер
    – vp_arth
    23 июл 2018 в 8:10

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge you have read our privacy policy.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.