Skip to content

Commit

Permalink
Merge pull request #109 from schmittjoh/goetas-patch-1
Browse files Browse the repository at this point in the history
Fix broken 2.6.0
  • Loading branch information
goetas authored Nov 22, 2021
2 parents 4a3ec6f + 15dbd5b commit c3a3214
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 c3a3214

Please sign in to comment.