Closed Jovonni closed 1 year ago
fyi haven't tested thoroughly, but it solves the issue in prestashop.
quite a few errors with prestashop 9
Hello @Jovonni,
Thank you for the feedback,
Our team will review your proposed changes and we will update you once we have more information.
Kind regards
Hello @Jovonni,
Considering the unavailability of PrestaShop version 9 at the moment, we regret to inform you that we are unable to replicate or test the reported issue.
Upon thorough examination of the pull request and an investigation into the PrestaShop logger (in previous versions), we have determined that the proposed changes are not compatible with the supported PrestaShop versions for the Adyen plugin (versions 1.7.0.0 - 8.0.4).
In these versions, the Monolog/Logger method, specifically the addRecord method, consists of three parameters: logging level (integer), message (string), and log context (array). However, the pull request introduces a fourth parameter, ?\Monolog\DateTimeImmutable $datetime. Additionally, the pull request incorporates type declarations in the method arguments and specifies the return type of the method, which is only available starting from PHP 7.4 (as outlined in the PHP documentation on type declarations: https://www.php.net/manual/en/language.types.declarations.php ). Given that the majority of PrestaShop versions compatible with the Adyen plugin support earlier versions of PHP, this change cannot be implemented.
Further investigation into this issue should be conducted once PrestaShop version 9 becomes available.
Kind regards.
Summary
Describe the changes proposed in this pull request:
Tested scenarios
Fixed issue: Fix: