Description
I used command:
composer update at laravel version 9.42
log:
`PHP Fatal error: Declaration of VladimirYuldashev\LaravelQueueRabbitMQ\Consumer::stop($status = 0): int must be compatible with Illuminate\Queue\Worker::stop($status = 0, $options = null) in /home/gabriel/Projekty/subjects_and_grades/vendor/vladimir-yuldashev/laravel-queue-rabbitmq/src/Consumer.php on line 200
Symfony\Component\ErrorHandler\Error\FatalError
Declaration of VladimirYuldashev\LaravelQueueRabbitMQ\Consumer::stop($status = 0): int must be compatible with Illuminate\Queue\Worker::stop($status = 0, $options = null)
at vendor/vladimir-yuldashev/laravel-queue-rabbitmq/src/Consumer.php:200
196▕ *
197▕ * @param int $status
198▕ * @return int
199▕ */
➜ 200▕ public function stop($status = 0): int
201▕ {
202▕ // Tell the server you are going to stop consuming.
203▕ // It will finish up the last message and not send you any more.
204▕ $this->channel->basic_cancel($this->consumerTag, false, true);
Whoops\Exception\ErrorException
Declaration of VladimirYuldashev\LaravelQueueRabbitMQ\Consumer::stop($status = 0): int must be compatible with Illuminate\Queue\Worker::stop($status = 0, $options = null)
at vendor/vladimir-yuldashev/laravel-queue-rabbitmq/src/Consumer.php:200
196▕ *
197▕ * @param int $status
198▕ * @return int
199▕ */
➜ 200▕ public function stop($status = 0): int
201▕ {
202▕ // Tell the server you are going to stop consuming.
203▕ // It will finish up the last message and not send you any more.
204▕ $this->channel->basic_cancel($this->consumerTag, false, true);
+1 vendor frames
2 [internal]:0
Whoops\Run::handleShutdown()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255
`