Skip to content

Deprecated warnings #7

Open
Open
@MMildnerTCT

Description

@MMildnerTCT

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions