Skip to content

Commit

Permalink
revert debug change
Browse files Browse the repository at this point in the history
  • Loading branch information
idbentley committed Jul 17, 2024
1 parent 186d526 commit 405bf93
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/JsonDeserializationVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@ public function visitDiscriminatorMapProperty($data, ClassMetadata $metadata): s
*/
public function startVisitingObject(ClassMetadata $metadata, object $object, array $type): void
{
$cur = $this->getCurrentObject() ? get_class($this->getCurrentObject()) : 'null';
$objtype = $object ? get_class($object) : 'null';
$stacksize = $this->objectStack->count();
$this->setCurrentObject($object);
}

Expand Down Expand Up @@ -214,11 +211,7 @@ public function visitProperty(PropertyMetadata $metadata, $data)
public function endVisitingObject(ClassMetadata $metadata, $data, array $type): object
{
$obj = $this->currentObject;
$prevObj = $this->objectStack->top();
$prevObjType = $prevObj ? get_class($prevObj) : 'null';

$this->revertCurrentObject();
$stacksize = $this->objectStack->count();

return $obj;
}
Expand Down

0 comments on commit 405bf93

Please sign in to comment.