We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f76b480 commit 536ab08Copy full SHA for 536ab08
src/Aman.php
@@ -78,12 +78,12 @@ public function __construct()
78
79
$this->lists = array_values(array_map(function (string $str): string {
80
81
- $replace = strval(preg_replace_callback('/[a-z]/i', function (array $matches): string {
82
- return strval(static::similar[strtolower($matches[0])] ?? $matches[0]);
+ $replace = strval(preg_replace_callback('/[a-z]/i', function (array $mats): string {
+ return strval(static::similar[strtolower($mats[0])] ?? $mats[0]);
83
}, $str));
84
85
return '/\b' . $replace . '\b/iu';
86
- }, $lists));
+ }, array_values($lists)));
87
}
88
89
/**
0 commit comments