Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[12.x] Queue event listeners with enum values #55656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 7, 2025

Conversation

wgriffioen
Copy link
Contributor

When the viaQueue method on a queued event listener returns an enum, it will fail with the error message:

Object of class App\Enums\QueueType could not be converted to string

With this PR the dispatcher will now convert an enum value to a string before dispatching the queued event listener to the queue.

@taylorotwell taylorotwell merged commit e333cc8 into laravel:12.x May 7, 2025
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants