diff --git a/src/Formatter/PrecisionNumberFormatter.php b/src/Formatter/PrecisionNumberFormatter.php index b560d07..946406b 100644 --- a/src/Formatter/PrecisionNumberFormatter.php +++ b/src/Formatter/PrecisionNumberFormatter.php @@ -34,7 +34,7 @@ public function formatValue(string $typeSpecifier, mixed $value): string $paddingChar = ' '; $paddingDigits = $matches[1]; - if (is_numeric($paddingDigits) && preg_match('/0[0-9]+/', $paddingDigits) !== false) { + if (is_numeric($paddingDigits) && preg_match('/0[0-9]+/', $paddingDigits) === 1) { $paddingChar = $paddingDigits[0]; }