Skip to content

Commit

Permalink
fix formatValue function
Browse files Browse the repository at this point in the history
  • Loading branch information
Smol-An committed Sep 21, 2023
1 parent 7deefd7 commit 1208550
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Formatters/Plain.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1208550

Please sign in to comment.