Skip to content

Commit

Permalink
Fix ForbidsSerialization compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-ogg committed Sep 26, 2023
1 parent 83b72fa commit 896cee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ForbidsSerialization.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ final public function __wakeup()
*
* @throws SerializationForbiddenException always.
*/
final public function __serialize()
final public function __serialize(): array
{
throw new SerializationForbiddenException(get_class($this));
}
Expand All @@ -75,7 +75,7 @@ final public function __serialize()
*
* @throws SerializationForbiddenException always.
*/
final public function __unserialize()
final public function __unserialize(array $data): void
{
throw new SerializationForbiddenException(get_class($this));
}
Expand Down

0 comments on commit 896cee6

Please sign in to comment.