Tests should use new array syntax.
All checks were successful
The build was successful.

This commit is contained in:
2019-03-21 17:33:40 +01:00
parent 075d2f0963
commit ab09ba6943
2 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ class Unicode {
public string unicon(string $str, bool $to_uni = true) {
string $cpp;
string[] $cp = array('А' => 'А', 'а' => 'а',
string[] $cp = {'А' => 'А', 'а' => 'а',
"Б" => "Б", "б" => "б",
"В" => "В", "в" => "в",
"Г" => "Г", "г" => "г",
@@ -34,7 +34,7 @@ class Unicode {
"Ь" => "Ь", "ь" => "ь",
"Э" => "Э", "э" => "э",
"Ю" => "Ю", "ю" => "ю",
"Я" => "Я", "я" => "я");
"Я" => "Я", "я" => "я"};
if($to_uni) {
$str = strtr($str, $cp);
} else {