From 0760550767df3372130799c4075795bf6ba846bc Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Thu, 28 Dec 2017 09:48:34 +0100 Subject: [PATCH] Removed unnecessary type hints --- module/Common/src/Service/IpLocationResolver.php | 1 - module/Core/src/Service/UrlShortener.php | 1 - 2 files changed, 2 deletions(-) diff --git a/module/Common/src/Service/IpLocationResolver.php b/module/Common/src/Service/IpLocationResolver.php index 93b3ccfe..017bf89c 100644 --- a/module/Common/src/Service/IpLocationResolver.php +++ b/module/Common/src/Service/IpLocationResolver.php @@ -32,7 +32,6 @@ class IpLocationResolver implements IpLocationResolverInterface $response = $this->httpClient->get(sprintf(self::SERVICE_PATTERN, $ipAddress)); return json_decode((string) $response->getBody(), true); } catch (GuzzleException $e) { - /** @var \Throwable $e */ throw WrongIpException::fromIpAddress($ipAddress, $e); } } diff --git a/module/Core/src/Service/UrlShortener.php b/module/Core/src/Service/UrlShortener.php index 6515fd0f..2214c144 100644 --- a/module/Core/src/Service/UrlShortener.php +++ b/module/Core/src/Service/UrlShortener.php @@ -149,7 +149,6 @@ class UrlShortener implements UrlShortenerInterface 'max' => 15, ]]); } catch (GuzzleException $e) { - /** @var \Throwable $e */ throw InvalidUrlException::fromUrl($url, $e); } }