Skip to content

Conversation

@scarab
Copy link

@scarab scarab commented Nov 29, 2023

Since PHP 8.1 the JsonSerialize::jsonSerialize method now have this signature:

public function jsonSerialize(): mixed;

and produces error if return type is not set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant