Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/optimize' into optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Jan 4, 2024
2 parents 46963a7 + de9f294 commit 6e6a755
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Dumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private function buildObjectsCache($variable, int $depth, int $level = 0): void
}
if (is_object($variable)) {
if (array_key_exists($variable::class, $this->excludedClasses) ||
array_key_exists(($objectDescription = $this->getObjectDescription($variable)), $this->objects)
array_key_exists($objectDescription = $this->getObjectDescription($variable), $this->objects)
) {
return;
}
Expand All @@ -90,8 +90,7 @@ private function asJsonInternal(
int $objectCollapseLevel,
bool $inlineObject,
bool $buildCache,
): string|bool
{
): string|bool {
$options = JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE | JSON_INVALID_UTF8_SUBSTITUTE;

if ($format) {
Expand Down

0 comments on commit 6e6a755

Please sign in to comment.