Skip to content

Fatal Error, Return type, PHP 8.2 #36

@thomas-renner

Description

@thomas-renner

PHP 8.2
Magento 2.4.7-p7
Payment Module: qenta/magento2-qcp

We receive the following Error at the checkout:

Fatal Error: 'During inheritance of ArrayAccess: Uncaught Exception: Deprecated Functionality: Return type of QentaCEE\Stdlib\FingerprintOrder::offsetSet($mOffset, $mValue) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/qenta/checkout-client-library/src/QentaCEE/Stdlib/FingerprintOrder.php on line 135

The quick fix would be to add #[\ReturnTypeWillChange] also to the "public function offsetSet($mOffset, $mValue)" as you already did in the functions offsetGet, offsetExists and offsetUnset.

Thx.

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