From bf965f6ab4b067292625be16a86bace446e6f5d6 Mon Sep 17 00:00:00 2001 From: inpsyde-maticluznar Date: Tue, 29 Aug 2023 06:08:21 +0200 Subject: [PATCH] Removed filter from findRefundsByLine method --- src/Payment/MollieOrderService.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Payment/MollieOrderService.php b/src/Payment/MollieOrderService.php index a424eec1..819cbdb4 100644 --- a/src/Payment/MollieOrderService.php +++ b/src/Payment/MollieOrderService.php @@ -608,9 +608,7 @@ protected function findMollieRefunds($payment): array */ protected function findRefundsByLine($payment): array { - return array_filter($payment->_embedded->refunds, static function ($refund) { - return $refund; - }); + return $payment->_embedded->refunds; } /**