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