Skip to content

Commit 55555d3

Browse files
authored
Merge pull request #145 from MarkBaker/PHP8.1-Resolve-JsonSerializable-Return-Datatype-Deprecation
Php8.1 resolve json serializable return datatype deprecation
2 parents af4b562 + 4651dd3 commit 55555d3

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)