Don't cast in pluralizer.

This commit is contained in:
Taylor Otwell
2013-01-05 14:55:01 -06:00
parent 6a6873440e
commit 62b55ff7a1

View File

@@ -67,7 +67,7 @@ class Pluralizer {
*/
public function plural($value, $count = 2)
{
if ((int) $count == 1) return $value;
if ($count == 1) return $value;
// First we'll check the cache of inflected values. We cache each word that
// is inflected so we don't have to spin through the regular expressions