From b759c6ce3731df8194d7d11df725174a5dcd2aaf Mon Sep 17 00:00:00 2001 From: core23 Date: Sat, 25 Feb 2023 12:44:08 +0100 Subject: [PATCH] Fix redundant cast to int --- src/Client/ApiClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client/ApiClient.php b/src/Client/ApiClient.php index 84a08143..d24c389f 100644 --- a/src/Client/ApiClient.php +++ b/src/Client/ApiClient.php @@ -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;