From 15dbd5b12934905a62bfd4e5dff2818263bf9e17 Mon Sep 17 00:00:00 2001 From: Asmir Mustafic Date: Mon, 22 Nov 2021 13:05:30 +0100 Subject: [PATCH] Update SerializationHelper.php --- src/SerializationHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SerializationHelper.php b/src/SerializationHelper.php index 8af00d6..017618f 100644 --- a/src/SerializationHelper.php +++ b/src/SerializationHelper.php @@ -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]); } }