Skip to content

Commit 70b6c72

Browse files
author
Can Demiralp
committed
[ECP-9489] Fix wrong array comparison
1 parent c23ec18 commit 70b6c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/AdyenOrderPaymentRepository.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function get(int $entityId): OrderPaymentInterface
126126
private function validateCaptureStatuses(array $captureStatuses): void
127127
{
128128
foreach ($captureStatuses as $captureStatus) {
129-
if (!array_contains($captureStatuses, $captureStatus)) {
129+
if (!array_contains(self::AVAILABLE_CAPTURE_STATUSES, $captureStatus)) {
130130
$message = sprintf(
131131
"Invalid capture status %s has been provided for adyen_order_payment repository!",
132132
$captureStatus

0 commit comments

Comments
 (0)