Commit e55cf315 authored by Taylor Otwell's avatar Taylor Otwell

dont cast to string in str::words method.

parent 68834a47
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment