Skip to content

Return type of Cmfcmf\OpenWeatherMap\Util\Unit::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used #182

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

Closed
jamieburchell opened this issue Jan 27, 2022 · 1 comment · Fixed by #181

Comments

@jamieburchell
Copy link

Version: v3.3.1
PHP: 8.1
Error:

A PHP Error was encountered
Severity: 8192

Message: Return type of Cmfcmf\OpenWeatherMap\Util\Unit::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: Util/Unit.php

Line Number: 155

@jamieburchell
Copy link
Author

Looks like this would fix it

@cmfcmf cmfcmf linked a pull request Feb 19, 2022 that will close this issue
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 a pull request may close this issue.

1 participant