Skip to content

Commit 62b55ff

Browse files
committed
Don't cast in pluralizer.
1 parent 6a68734 commit 62b55ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/pluralizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function singular($value)
6767
*/
6868
public function plural($value, $count = 2)
6969
{
70-
if ((int) $count == 1) return $value;
70+
if ($count == 1) return $value;
7171

7272
// First we'll check the cache of inflected values. We cache each word that
7373
// is inflected so we don't have to spin through the regular expressions

0 commit comments

Comments
 (0)