在Symfony 4上安装Composer时出错

时间:2019-01-15 16:14:00

标签: php symfony

这是我运行composer install更新Composer依赖项时获得的结果,并且我删除了composer.lock以确保将下载更新的依赖项。

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 255
!!
!!  Fatal error: Declaration of App\Middleware\EventBusMiddleware::handle($message, callable $next) must be compatible with Symfony\Component\Messenger\Middleware\MiddlewareInterface::handle(Symfony\Component\Messenger\Envelope $envelope, Symfony\Component\Messenger\Middleware\StackInterface $stack): Symfony\Component\Messenger\Envelope in /var/www/html/src/Middleware/EventBusMiddleware.php on line 8
!!
!!  In EventBusMiddleware.php line 8:
!!
!!    Compile Error: Declaration of App\Middleware\EventBusMiddleware::han
!!    dle($message, callable $next) must be compatible with Symfony\Component\Mes
!!    senger\Middleware\MiddlewareInterface::handle(Symfony\Component\Messenger\E
!!    nvelope $envelope, Symfony\Component\Messenger\Middleware\StackInterface $s
!!    tack): Symfony\Component\Messenger\Envelope
!!
!!
!!
Script @auto-scripts was called via post-install-cmd

can someone help me with this ?

0 个答案:

没有答案