diff --git a/src/Currency.php b/src/Currency.php index 3e20cba4..3e3380c6 100644 --- a/src/Currency.php +++ b/src/Currency.php @@ -67,7 +67,7 @@ public function __serialize(): array return ['code' => $this->code]; } - # TODO Correct PSALM? + // TODO Correct PSALM? public function __unserialize(array $data): void { $this->code = (string) $data['code']; @@ -81,9 +81,10 @@ public function serialize(): array return $this->__serialize(); } - # TODO Correct PSALM? - public function unserialize(string $data) + // TODO Correct PSALM? + // Correct CODE? + public function unserialize(string $data): void { - return $this->__unserialize($data); + $this->__unserialize((array) $data); } }