Skip to content

Declaration of LoggerWrapper::emergency() is not compatible with PSR logger interface #52

Description

@HaruAtari

I have the next error after migration from the yandex-checkout-sdk-php on PHP 8:

Declaration of YooKassa\Common\LoggerWrapper::emergency($message, array $context = []) must be compatible with Psr\Log\LoggerInterface::emergency(Stringable|string $message, array $context = []): void

I think it happens because the yandex-checkout-sdk-php used an older version of the psr/log package.

https://github.com/yoomoney/yandex-checkout-sdk-php/blob/master/composer.json#L10
https://github.com/yoomoney/yookassa-sdk-php/blob/master/composer.json#L20

Maybe it will be better to return back to "psr/log": "^1.0" to save PHP 5.3 as a minimal version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions