Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[5.2] Update Str::plural() to use intval() (laravel#14502)
* Update Str::plural() to use intval() A lot of the time when you use str_plural() you get the $count value from a form request which returns the number as a string and therefore this plural won't work as expected. This small change should make sure the $count is in integer format. Thanks to @barryvdh for suggesting to do this change deeper in the code. * Changed to type casting Using `(int) $count` instead of `intval($count)` as requested.
- Loading branch information