Skip to content

Commit

Permalink
fix: phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Jan 21, 2025
1 parent 55e66b1 commit 1d993c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Exceptions/LogicException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

namespace Mollie\Api\Exceptions;

class LogicException extends MollieException {}
3 changes: 2 additions & 1 deletion src/Traits/HasResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Mollie\Api\Traits;

use Mollie\Api\Exceptions\LogicException;
use Mollie\Api\Exceptions\MollieException;
use Mollie\Api\Http\PendingRequest;
use Mollie\Api\Http\Response;
Expand All @@ -25,7 +26,7 @@ public function setResponse(?Response $response): self
public function getPendingRequest(): PendingRequest
{
if (! $this->response) {
throw new MollieException('Response is not set');
throw new LogicException('Response is not set');
}

return $this->response->getPendingRequest();
Expand Down

0 comments on commit 1d993c4

Please sign in to comment.