From 62b55ff7a17f90ae2c05279ff6369af0617e0c8a Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 5 Jan 2013 14:55:01 -0600 Subject: [PATCH] Don't cast in pluralizer. --- laravel/pluralizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/pluralizer.php b/laravel/pluralizer.php index 2ce72f0b..90f12b19 100644 --- a/laravel/pluralizer.php +++ b/laravel/pluralizer.php @@ -67,7 +67,7 @@ public function singular($value) */ 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