Skip to content

Commit 4651dd3

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Enum.php

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

0 commit comments

Comments
 (0)