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

PHP8 Warnings #45

Open
JonLaliberte opened this issue Jun 16, 2022 · 1 comment
Open

PHP8 Warnings #45

JonLaliberte opened this issue Jun 16, 2022 · 1 comment

Comments

@JonLaliberte
Copy link

Deprecated: ctype_digit(): Argument of type int will be interpreted as string in the future in /src/PrintNode/Request.php on line 316

Deprecated: ctype_digit(): Argument of type int will be interpreted as string in the future in /src/PrintNode/Request.php on line 329

@kingIZZZY
Copy link

Here's another one

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
Fix this line with the : mixed at the end of the function signature.

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

No branches or pull requests

2 participants