From 1208550a1acdbe8f944ebe6c31f5589b3e7f77e5 Mon Sep 17 00:00:00 2001 From: Anastasia Smolyakova Date: Thu, 21 Sep 2023 20:31:32 +0300 Subject: [PATCH] fix formatValue function --- src/Formatters/Plain.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Formatters/Plain.php b/src/Formatters/Plain.php index bad7809..adb4218 100644 --- a/src/Formatters/Plain.php +++ b/src/Formatters/Plain.php @@ -43,7 +43,11 @@ function formatValue(mixed $value): string return $value ? 'true' : 'false'; } - return "'$value'"; + if (is_string($value)) { + return "'$value'"; + } + + return $value; } function getPlainDiff(array $diff): string