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 @@ public function shortenedRecursiveExport(array &$data, ?RecursionContext $proces 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);