Skip to content

Commit

Permalink
fail after all attempts to find order fail
Browse files Browse the repository at this point in the history
  • Loading branch information
repl6669 committed Dec 10, 2024
1 parent f85a99a commit 4783b16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Jobs/Webhooks/WebhookHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,23 +82,23 @@ protected function findOrder(PaymentIntentContract $paymentIntent): Order

return $order;
} catch (Throwable $e) {
$this->fail($e);
// $this->fail($e);
}

try {
$order = App::make(FindOrderByTransaction::class)($paymentIntent);

return $order;
} catch (Throwable $e) {
$this->fail($e);
// $this->fail($e);
}

try {
$order = App::make(FindOrderByCartIntent::class)($paymentIntent);

return $order;
} catch (Throwable $e) {
$this->fail($e);
// $this->fail($e);
}

$this->fail(new ModelNotFoundException('Order not found.'));

Check failure on line 104 in src/Jobs/Webhooks/WebhookHandler.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Dystcz\LunarApiStripeAdapter\Jobs\Webhooks\WebhookHandler::findOrder() should return Lunar\Models\Order but return statement is missing.
Expand Down

0 comments on commit 4783b16

Please sign in to comment.