PropertyModifier: multibyte-safe upper/lowercase

fixes #710
This commit is contained in:
Thomas Gelf 2019-10-14 15:07:45 +02:00
parent d0a29d4716
commit 6ca14a58b0
2 changed files with 2 additions and 2 deletions

View File

@ -8,6 +8,6 @@ class PropertyModifierLowercase extends PropertyModifierHook
{
public function transform($value)
{
return strtolower($value);
return \mb_strtolower($value, 'UTF-8');
}
}

View File

@ -8,6 +8,6 @@ class PropertyModifierUppercase extends PropertyModifierHook
{
public function transform($value)
{
return strtoupper($value);
return \mb_strtoupper($value, 'UTF-8');
}
}