We're having some issues with this extension, where it tries to use an empty array key to get the pay order ID.
This results in str_replace being used with a null value as subject, which is deprecated and results in a critical error.
[2023-08-21T08:47:49.042499+00:00] .CRITICAL: Exception message: Deprecated Functionality: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /data/web/releases/20230821081231/vendor/paynl/magento2-plugin/Observer/OrderCancelAfter.php on line 51
This observer is also fired for all order cancellations, it might be good to only try to handle orders payed with paynl. As far as I can tell it now tries to interact with any cancelled order.
Hi,
We're having some issues with this extension, where it tries to use an empty array key to get the pay order ID. This results in str_replace being used with a null value as subject, which is deprecated and results in a critical error.
This observer is also fired for all order cancellations, it might be good to only try to handle orders payed with paynl. As far as I can tell it now tries to interact with any cancelled order.