Remove unnecessary sprintf() in hot path

This commit is contained in:
Markus Staab 2024-06-16 13:18:11 +02:00 committed by Sebastian Bergmann
parent 22b394a681
commit 6142168041
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ final readonly class Exporter
if ($processed->contains($data[$key]) !== false) {
$result[] = '*RECURSION*';
} else {
$result[] = sprintf('[%s]', $this->shortenedRecursiveExport($data[$key], $processed));
$result[] = '['. $this->shortenedRecursiveExport($data[$key], $processed) .']';
}
} else {
$result[] = $this->shortenedExport($value);