Skip to content

Commit 195eee4

Browse files
author
MarkBaker
committed
PHP 8.1: silence the deprecation notice about jsonSerialize() return type
1 parent af4b562 commit 195eee4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Enum.php

+1
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ public static function __callStatic($name, $arguments)
311311
* @link http://php.net/manual/en/jsonserializable.jsonserialize.php
312312
* @psalm-pure
313313
*/
314+
#[ReturnTypeWillChange]
314315
public function jsonSerialize()
315316
{
316317
return $this->getValue();

0 commit comments

Comments
 (0)