From 5ac8672b88ab4c64110bfecabdf72e52484953cc Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Tue, 7 Jan 2025 10:18:54 +0100 Subject: [PATCH] remove duplicated null replacements --- src/sensitiveMessageFormatter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sensitiveMessageFormatter.php b/src/sensitiveMessageFormatter.php index c46660c..2011ce7 100644 --- a/src/sensitiveMessageFormatter.php +++ b/src/sensitiveMessageFormatter.php @@ -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) ); },