Skip to content

Commit

Permalink
PHP 8.1: silence the deprecation notice about jsonSerialize() return …
Browse files Browse the repository at this point in the history
…type
  • Loading branch information
MarkBaker committed Jun 28, 2021
1 parent 195eee4 commit 4651dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public static function __callStatic($name, $arguments)
* @link http://php.net/manual/en/jsonserializable.jsonserialize.php
* @psalm-pure
*/
#[ReturnTypeWillChange]
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->getValue();
Expand Down

0 comments on commit 4651dd3

Please sign in to comment.