Browse Source

dont cast to string in str::words method.

Taylor Otwell 12 years ago
parent
commit
e55cf31578
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/str.php

+ 1 - 1
laravel/str.php

@@ -148,7 +148,7 @@ class Str {
 	 */
 	public static function words($value, $words = 100, $end = '...')
 	{
-		if (trim((string) $value) == '') return '';
+		if (trim($value) == '') return '';
 
 		preg_match('/^\s*+(?:\S++\s*+){1,'.$words.'}/', $value, $matches);