remove duplicated null replacements
This commit is contained in:
parent
fa151ad116
commit
5ac8672b88
@ -53,11 +53,11 @@ class sensitiveMessageFormatter extends MessageFormatter
|
||||
array_map(
|
||||
function ($search) use (&$replacements) {
|
||||
$replacements[$search] = str_repeat(
|
||||
$this->replaceChar ?? '*',
|
||||
$this->replaceChar,
|
||||
$this->fixedReplacementLength ?? strlen($search)
|
||||
);
|
||||
$replacements[urlencode($search)] = str_repeat(
|
||||
$this->replaceChar ?? '*',
|
||||
$this->replaceChar,
|
||||
$this->fixedReplacementLength ?? strlen($search)
|
||||
);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user