Skip to content

Commit

Permalink
Fix unserialize returning null
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky authored Nov 20, 2017
1 parent e327fa2 commit d2712ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Everlution/EnumBundle/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,15 @@ final public function serialize(): int
}

/**
* @param int $serialized
* @param mixed $serialized
*
* @return EnumInterface
*/
final public function unserialize($serialized): EnumInterface
{
return static::__construct($serialized);
static::__construct($serialized);

return $this;
}

/**
Expand Down

0 comments on commit d2712ce

Please sign in to comment.