-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Str::trim changed Behavior #52681
Comments
Hmm unsure what caused this. Could you propose your change backed with some tests? |
Sure, brb |
I've Already found the issue. Pushing a PR in a few |
There you go: https://github.com/laravel/framework/pull/52684/files Please let me know if yo need me to change anything |
…n\r\t\v\0" (#52684) * Fixing Str::trim to remove the default characters which are " \n\r\t\v\0" Fixes #52681 (laravel/framework#52681) * Fixing Str::trim to remove the default characters which are " \n\r\t\v\0" Fixes #52681 (laravel/framework#52681)
Laravel Version
11.22.0
PHP Version
8.3.10
Database Driver & Version
No response
Description
Previously, on Laravel 10, the
str()->trim()->toString()
worked differently.Steps To Reproduce
Output Laravel 10
Output Laravel 11
We could either use this regex addition
\x00
or do something likeThe text was updated successfully, but these errors were encountered: