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

FIx for "empty" strings passed to Str::apa() #50335

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

tiagof
Copy link
Contributor

@tiagof tiagof commented Mar 1, 2024

Illuminate\Support\Str::apa('   ')

Is throwing an exception. This (hopefully) fixes this edge case.

Avoid exception passed string is just spaces.
Example: str('   ')->apa() was failing.
@taylorotwell taylorotwell merged commit 5a1fa47 into laravel:10.x Mar 2, 2024
26 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