Skip to content

Commit

Permalink
Fix redundant cast to int
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Feb 25, 2023
1 parent 9f0fd31 commit b759c6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client/ApiClient.php
Expand Up @@ -132,8 +132,8 @@ private function call(string $method, array $params): array
try {
return $this->connection->call($method, $params);
} catch (ApiException $e) {
if (6 === (int) $e->getCode()) {
throw new NotFoundException('No entity was found for your request.', (int) $e->getCode(), $e);
if (6 === $e->getCode()) {
throw new NotFoundException('No entity was found for your request.', $e->getCode(), $e);
}

throw $e;
Expand Down

0 comments on commit b759c6c

Please sign in to comment.