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

Deprecated warnings #7

Open
MMildnerTCT opened this issue Apr 30, 2024 · 0 comments
Open

Deprecated warnings #7

MMildnerTCT opened this issue Apr 30, 2024 · 0 comments

Comments

@MMildnerTCT
Copy link

Hi,

I'm getting Deprecated warnings on PHP 8.1 when creating a session key:

Deprecated: Academe\Opayo\Pi\Security\SensitiveValue implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /PATH/vendor/academe/opayo-pi/src/Security/SensitiveValue.php on line 9

Deprecated: Return type of Academe\Opayo\Pi\Security\SensitiveValue::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /PATH/vendor/academe/opayo-pi/src/Security/SensitiveValue.php on line 67

Deprecated: Return type of Academe\Opayo\Pi\Request\CreateSessionKey::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /PATH/vendor/academe/opayo-pi/src/Request/CreateSessionKey.php on line 30

Deprecated: Return type of Academe\Opayo\Pi\Response\SessionKey::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /PATH/vendor/academe/opayo-pi/src/Response/SessionKey.php on line 125

I have turned off the warnings for now.

Thanks,
Martin

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

1 participant