From 208c14fa3a5a47488cfdf503e79630d2b85e91ed Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Mon, 17 Jun 2024 16:39:40 +0200 Subject: [PATCH] Take shortcut when exporting a string --- src/Exporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exporter.php b/src/Exporter.php index cf7efc1..f91a641 100644 --- a/src/Exporter.php +++ b/src/Exporter.php @@ -96,7 +96,7 @@ final readonly class Exporter public function shortenedExport(mixed $value): string { if (is_string($value)) { - $string = str_replace("\n", '', $this->export($value)); + $string = str_replace("\n", '', $this->exportString($value)); if (mb_strlen($string) > 40) { return mb_substr($string, 0, 30) . '...' . mb_substr($string, -7);