Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix textarea helper method signature. #159

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

samrap
Copy link
Contributor

@samrap samrap commented Aug 10, 2024

The textarea helper function currently has the wrong signature.

The signature previously (incorrectly) typed the $validate parameter as a nullable Closure. The upstream signature declares the parameter as a nullable mixed, same as the other prompt types.

What does this fix? It allows us to use all of the types of validation for textarea prompts (using the helpers).

I don't believe we need tests since we are just piping the data through to an object which supports this value.

The signature previously (incorrectly) typed the `$validate`
parameter as a nullable Closure. The upstream signature declares
the parameter as mixed, same as the other prompt types.
@samrap samrap force-pushed the fix-textarea-helper-signature branch from d21fcc2 to 98a1a27 Compare August 10, 2024 08:58
@taylorotwell taylorotwell merged commit 7b4029a into laravel:main Aug 12, 2024
4 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants