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

[12.x] Allow when() helper to accept Closure condition parameter #54005

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

ziadoz
Copy link
Contributor

@ziadoz ziadoz commented Dec 23, 2024

#54003 but for 12.x as it's breaking change. Also, I guess technically it's a bug fix, since anyone passing a callable to when() as the condition would always be getting true (https://3v4l.org/SqMUh).

@taylorotwell taylorotwell merged commit f0bf46d into laravel:master Dec 27, 2024
40 checks passed
@ziadoz ziadoz deleted the when-fn branch January 2, 2025 09:32
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