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:
@@ -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
|
||||
|
Reference in New Issue
Block a user