Skip to content

PHP 8.1 error #100

@martinvigholm

Description

@martinvigholm

Error when updating to PHP 8.1:

PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of SwedbankPay\Core\Data::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/swedbank-pay/swedbank-pay-woocommerce-core/src/SwedbankPay/Core/Data.php:132

Should be fixed with correct return value from the methods?

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