Skip to content

Commit

Permalink
Remove unnecessary sprintf() in hot path
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jun 16, 2024
1 parent 22b394a commit ed88396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function shortenedRecursiveExport(array &$data, ?RecursionContext $proces
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);
Expand Down

0 comments on commit ed88396

Please sign in to comment.