Skip to content

Commit

Permalink
Fix #282: Fix dumper
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Sep 25, 2024
1 parent 90bb196 commit 0d42451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function asJson(int $depth = 50, bool $format = false): string
public function asJsonObjectsMap(int $depth = 50, bool $prettyPrint = false): string
{
$this->buildObjectsCache($this->variable, $depth);
return $this->asJsonInternal($this->objects, $prettyPrint, $depth, 1, true);
return $this->asJsonInternal($this->objects, $prettyPrint, 2, 1, true);
}

private function buildObjectsCache(mixed $variable, int $depth, int $level = 0): void
Expand Down

0 comments on commit 0d42451

Please sign in to comment.