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

Fix toUpperCase and toLowerCase not being static in StaticStringy

This commit is contained in:
Daniel St. Jules
2013-09-14 11:31:51 -04:00
parent 61cd5f5f4d
commit d862f9c24c

View File

@@ -304,7 +304,7 @@ class StaticStringy
* @param string $encoding The character encoding
* @return string The lowercase string
*/
public function toLowerCase($str, $encoding = null)
public static function toLowerCase($str, $encoding = null)
{
return Stringy::create($str, $encoding)->toLowerCase()->str;
}
@@ -317,7 +317,7 @@ class StaticStringy
* @param string $encoding The character encoding
* @return string The uppercase string
*/
public function toUpperCase($str, $encoding = null)
public static function toUpperCase($str, $encoding = null)
{
return Stringy::create($str, $encoding)->toUpperCase()->str;
}