1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-08-11 15:54:04 +02:00

fixed T_OBJECT_OPERATOR issue in PHP 5.3

This commit is contained in:
gotterdemarung
2013-12-10 23:10:44 +02:00
parent 5e01d895db
commit 7335ee5c88

View File

@@ -226,7 +226,8 @@ class Stringy
if ($ignore && in_array($match[0], $ignore)) {
return $match[0];
} else {
return (string) (new Stringy($match[0], $encoding))->upperCaseFirst();
$stringy = new Stringy($match[0], $encoding);
return (string) $stringy->upperCaseFirst();
}
},
$buffer