这是我运行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 ?