Skip to content
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

fix: undefined array key 'queue' #1351

Merged

Conversation

TomaszOnePilot
Copy link
Contributor

I had some crashes in MasterSupervisorController.
In fact, it seems like in the case where $value is an array that has no queue key, it's failing because we are still trying to access this key.
I think the parenthesis were probably added by mistake, as coalescing ( ?? ) operator cannot be applied "directly" on $value['queue'].

For reproducing matter, I don't really know how to reproduce it, it seems like it sometimes enters in this code, but not always. And in fact we are not running any queued job in the route where it fails, maybe some redis usage around session or cache, but no custom application queued jobs that could trigger horizon, so it is quite mysterious for me.

Capture d’écran 2023-11-23 à 16 39 17

@taylorotwell taylorotwell merged commit bdf58c8 into laravel:5.x Nov 23, 2023
12 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