Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Commit

Permalink
Avoid temporary array creation in exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Apr 9, 2023
1 parent d900758 commit 206ba4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exporter/InlineExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function export(&$value, int $depth = null): string
/** @var array $value */
/** @var ReflectionReference $reference */
$reference =
ReflectionReference::fromArrayElement([&$value], 0);
ReflectionReference::fromArrayElement($entry, 0);
$referenceId = $reference->getId();

if (isset($this->arrayIds[$referenceId])) {
Expand Down

0 comments on commit 206ba4f

Please sign in to comment.