Skip to content

Commit

Permalink
Update SerializationHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas authored Nov 22, 2021
1 parent 4a3ec6f commit 15dbd5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SerializationHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ public function unserialize($str)

public function __serialize(): array
{
return $this->serializeToArray();
return [$this->serialize()];
}

public function __unserialize(array $data): void
{
$this->unserializeFromArray($data);
$this->unserialize($data[0]);
}
}

0 comments on commit 15dbd5b

Please sign in to comment.