Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jsonSerialize for PHP 8.1 #265

Merged
merged 2 commits into from
Aug 14, 2022
Merged

Conversation

jissereitsma
Copy link
Contributor

The original jsonSerialize method signature has changed to public function jsonSerialize(): mixed;. This works under PHP 8.1, but to support older PHP versions too, this PR adds the optional ReturnTypeWillChange attribute.

The original `jsonSerialize` method signature has changed to `public function jsonSerialize(): mixed;`. This works under PHP 8.1, but to support older PHP versions too, this PR adds the optional `ReturnTypeWillChange` attribute.
@stephangroen stephangroen merged commit 6cfe203 into picqer:main Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants