Skip to content

Commit

Permalink
Merge pull request #145 from MarkBaker/PHP8.1-Resolve-JsonSerializabl…
Browse files Browse the repository at this point in the history
…e-Return-Datatype-Deprecation

Php8.1 resolve json serializable return datatype deprecation
  • Loading branch information
mnapoli authored Jun 29, 2021
2 parents af4b562 + 4651dd3 commit 55555d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public static function __callStatic($name, $arguments)
* @link http://php.net/manual/en/jsonserializable.jsonserialize.php
* @psalm-pure
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->getValue();
Expand Down

0 comments on commit 55555d3

Please sign in to comment.