mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-07 13:56:31 +02:00
Return real strings from StaticStringy
This commit is contained in:
committed by
Daniel St. Jules
parent
e01ba7f848
commit
5303203a72
@@ -143,6 +143,12 @@ class StaticStringy
|
||||
|
||||
$stringy = Stringy::create($str, $encoding);
|
||||
|
||||
return call_user_func_array([$stringy, $name], $args);
|
||||
$result = call_user_func_array([$stringy, $name], $args);
|
||||
|
||||
if (is_object($result) && $result instanceof Stringy) {
|
||||
return (string) $result;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user