You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to feed trans() a second argument that is an array with a key and a null value results in a deprecation warning: local.WARNING: ErrorException: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /app/vendor/laravel/framework/src/Illuminate/Support/Str.php:941
While that case isn't described in the Laravel documentation, it used to work and still does. I also believe it's reasonably common to occur, especially when just feeding the values from the database into the translator.
Description:
Trying to feed
trans()
a second argument that is an array with a key and a null value results in a deprecation warning:local.WARNING: ErrorException: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /app/vendor/laravel/framework/src/Illuminate/Support/Str.php:941
While that case isn't described in the Laravel documentation, it used to work and still does. I also believe it's reasonably common to occur, especially when just feeding the values from the database into the translator.
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: