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

[11.x] Prevent calling tries() twice #53010

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

themsaid
Copy link
Member

@themsaid themsaid commented Oct 2, 2024

The changes introduced in #49473 add an a check for a tries method on job classes. It checks if the tries method returns null by calling it and then it calls it again to get the result.

This change prevents calling the method twice.

@taylorotwell taylorotwell merged commit 60c2ba9 into laravel:11.x Oct 2, 2024
33 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