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

PHP 8.1 compatibility / deprecation warnings #46

Conversation

kingIZZZY
Copy link

PHP Deprecated: Return type of PrintNode\Entity::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../vendor/printnode/printnode-php/src/PrintNode/Entity.php on line 105

Explanation: https://stackoverflow.com/a/71133750
PrintNode's class Entity implements \JsonSerializable: https://www.php.net/manual/en/class.jsonserializable.php

PHP Deprecated: Return type of PrintNode\Entity::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../vendor/printnode/printnode-php/src/PrintNode/Entity.php on line 105

Explanation: https://stackoverflow.com/a/71133750
PrintNode's class Entity implements \JsonSerializable: https://www.php.net/manual/en/class.jsonserializable.php
@wouter-toppy
Copy link

@kingIZZZY its also needed on EntityDynamic

@Tjitse-E Tjitse-E mentioned this pull request Oct 13, 2022
@DjThossi
Copy link

When will this be merged? It's annoying to get every time a Sentry message for this.

@tomaszdurda
Copy link
Contributor

This was done as part of a7616cf.

@neopheus
Copy link

Fix here : #57

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.

5 participants