Skip to content

Commit

Permalink
Merge pull request #112 from spatie/php81
Browse files Browse the repository at this point in the history
remove typehint and use an attribute
  • Loading branch information
Nielsvanpach authored Nov 25, 2021
2 parents 2608296 + 90a500a commit c99fdbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,9 @@ private static function arrayHasDuplicates(array $array): bool

/**
* @return int|string
* #[\ReturnTypeWillChange]
*/
public function jsonSerialize(): mixed
public function jsonSerialize()
{
return $this->value;
}
Expand Down

0 comments on commit c99fdbb

Please sign in to comment.