Skip to content

Commit

Permalink
PISHPS-310: fixed phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
m-muxfeld-diw committed Aug 20, 2024
1 parent b8da99b commit 8705eb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Subscriber/OrderEditSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function accountOrderDetailPageLoaded(AccountOrderPageLoadedEvent $event)
continue;
}

$lastTransaction = $transactions->filter(Closure::fromCallable([$this, 'sortTransactionsByDate']));
$lastTransaction = $transactions->filter(Closure::fromCallable([$this, 'sortTransactionsByDate']))->last();

$lastStatus = $lastTransaction->getStateMachineState()->getTechnicalName();

Expand Down Expand Up @@ -129,7 +129,7 @@ private function isMolliePayment(OrderEntity $order): bool
{
$customFields = $order->getCustomFields();

return is_array($customFields) && !count($customFields) && isset($customFields['mollie_payments']);
return is_array($customFields) && count($customFields) && isset($customFields['mollie_payments']);
}

/**
Expand Down

0 comments on commit 8705eb0

Please sign in to comment.