Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:masterfrom
ziadoz:when-fn
Dec 27, 2024
Merged

[12.x] Allow when() helper to accept Closure condition parameter#54005
taylorotwell merged 1 commit into
laravel:masterfrom
ziadoz:when-fn

Conversation

@ziadoz

@ziadoz ziadoz commented Dec 23, 2024

Copy link
Copy Markdown
Contributor

#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
@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