Skip to content

[BUG] VladimirYuldashev\LaravelQueueRabbitMQ\Horizon\RabbitMQQueue::$lastPushed not initialization #551

Closed
@shuqingzai

Description

@shuqingzai
  • Laravel/Lumen version:
php artisan --version
Laravel Framework 9.52.9
  • RabbitMQ version:
3.10
  • Package version:
composer show vladimir-yuldashev/laravel-queue-rabbitmq

name     : vladimir-yuldashev/laravel-queue-rabbitmq
descrip. : RabbitMQ driver for Laravel Queue. Supports Laravel Horizon.
keywords :
versions : * 13.3.2

Describe the bug

VladimirYuldashev\LaravelQueueRabbitMQ\Horizon\RabbitMQQueue::$lastPushed has added type, but it is not initialized, resulting in an error when using \VladimirYuldashev\LaravelQueueRabbitMQ\Horizon\RabbitMQQueue::pushRaw()

See: src/Horizon/RabbitMQQueue.php

error:

Typed property VladimirYuldashev\LaravelQueueRabbitMQ\Horizon\RabbitMQQueue::$lastPushed must not be accessed before initialization

Steps To Reproduce

Call \VladimirYuldashev\LaravelQueueRabbitMQ\Horizon\RabbitMQQueue::pushRaw() to send messages or use the Horizon dashboard to retry failed tasks

Current behavior

  • What happens with the worker?
  • Is the message retried or put back into the queue?
  • Is the message acknowledged or rejected?
  • Is the message unacked?
  • Is the message gone?

Expected behavior

What is the expected behavior

Additional context

Add any other context about the problem or describe the use-case.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions