Skip to content

[12.x] Allow closure parameters in docblock for when() helper function#58862

Merged
taylorotwell merged 3 commits intolaravel:12.xfrom
gazben:fix-when-docblock
Feb 16, 2026
Merged

[12.x] Allow closure parameters in docblock for when() helper function#58862
taylorotwell merged 3 commits intolaravel:12.xfrom
gazben:fix-when-docblock

Conversation

@gazben
Copy link
Contributor

@gazben gazben commented Feb 16, 2026

In this merge request #58696 the when() function docblock was updated in a way that closure parameters were not allowed. Related comment: #58696 (comment)

The when() function calls the value() function with the condition parameters, and this should be reflected in the docblock.

@gazben gazben changed the title Allow closure parameters in docblock for when() helper function [12.x] Allow closure parameters in docblock for when() helper function Feb 16, 2026
@gazben gazben marked this pull request as draft February 16, 2026 09:58
@gazben gazben marked this pull request as ready for review February 16, 2026 10:39
@taylorotwell taylorotwell merged commit 4400212 into laravel:12.x Feb 16, 2026
70 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

Comments