Skip to content

Commit

Permalink
chore: fixes static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Mar 14, 2024
1 parent 853f6ef commit 1b68b34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Support/Exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ public function shortenedRecursiveExport(array &$data, ?Context $context = null)
continue;
}

assert(is_array($data));

$result[] = $context->contains($data[$key]) !== false
? '*RECURSION*'
: sprintf('[%s]', $this->shortenedRecursiveExport($data[$key], $context));
Expand Down

0 comments on commit 1b68b34

Please sign in to comment.