summaryrefslogtreecommitdiffstats
path: root/vendor/maxmind/web-service-common/src/Exception
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/maxmind/web-service-common/src/Exception')
-rw-r--r--vendor/maxmind/web-service-common/src/Exception/AuthenticationException.php2
-rw-r--r--vendor/maxmind/web-service-common/src/Exception/HttpException.php14
-rw-r--r--vendor/maxmind/web-service-common/src/Exception/InsufficientFundsException.php2
-rw-r--r--vendor/maxmind/web-service-common/src/Exception/InvalidInputException.php2
-rw-r--r--vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php16
-rw-r--r--vendor/maxmind/web-service-common/src/Exception/IpAddressNotFoundException.php2
-rw-r--r--vendor/maxmind/web-service-common/src/Exception/PermissionRequiredException.php2
-rw-r--r--vendor/maxmind/web-service-common/src/Exception/WebServiceException.php2
8 files changed, 31 insertions, 11 deletions
diff --git a/vendor/maxmind/web-service-common/src/Exception/AuthenticationException.php b/vendor/maxmind/web-service-common/src/Exception/AuthenticationException.php
index 54258ca..5843a6d 100644
--- a/vendor/maxmind/web-service-common/src/Exception/AuthenticationException.php
+++ b/vendor/maxmind/web-service-common/src/Exception/AuthenticationException.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace MaxMind\Exception;
/**
diff --git a/vendor/maxmind/web-service-common/src/Exception/HttpException.php b/vendor/maxmind/web-service-common/src/Exception/HttpException.php
index 990ee79..698f83e 100644
--- a/vendor/maxmind/web-service-common/src/Exception/HttpException.php
+++ b/vendor/maxmind/web-service-common/src/Exception/HttpException.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace MaxMind\Exception;
/**
@@ -9,6 +11,8 @@ class HttpException extends WebServiceException
{
/**
* The URI queried.
+ *
+ * @var string
*/
private $uri;
@@ -19,21 +23,21 @@ class HttpException extends WebServiceException
* @param \Exception $previous the previous exception, if any
*/
public function __construct(
- $message,
- $httpStatus,
- $uri,
+ string $message,
+ int $httpStatus,
+ string $uri,
\Exception $previous = null
) {
$this->uri = $uri;
parent::__construct($message, $httpStatus, $previous);
}
- public function getUri()
+ public function getUri(): string
{
return $this->uri;
}
- public function getStatusCode()
+ public function getStatusCode(): int
{
return $this->getCode();
}
diff --git a/vendor/maxmind/web-service-common/src/Exception/InsufficientFundsException.php b/vendor/maxmind/web-service-common/src/Exception/InsufficientFundsException.php
index 4d6b3be..4639a3e 100644
--- a/vendor/maxmind/web-service-common/src/Exception/InsufficientFundsException.php
+++ b/vendor/maxmind/web-service-common/src/Exception/InsufficientFundsException.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace MaxMind\Exception;
/**
diff --git a/vendor/maxmind/web-service-common/src/Exception/InvalidInputException.php b/vendor/maxmind/web-service-common/src/Exception/InvalidInputException.php
index 091829a..6764bef 100644
--- a/vendor/maxmind/web-service-common/src/Exception/InvalidInputException.php
+++ b/vendor/maxmind/web-service-common/src/Exception/InvalidInputException.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace MaxMind\Exception;
/**
diff --git a/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php b/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php
index c9168ef..70a17cb 100644
--- a/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php
+++ b/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace MaxMind\Exception;
/**
@@ -9,28 +11,30 @@ class InvalidRequestException extends HttpException
{
/**
* The code returned by the MaxMind web service.
+ *
+ * @var string
*/
private $error;
/**
* @param string $message the exception message
- * @param int $error the error code returned by the MaxMind web service
+ * @param string $error the error code returned by the MaxMind web service
* @param int $httpStatus the HTTP status code of the response
* @param string $uri the URI queries
* @param \Exception $previous the previous exception, if any
*/
public function __construct(
- $message,
- $error,
- $httpStatus,
- $uri,
+ string $message,
+ string $error,
+ int $httpStatus,
+ string $uri,
\Exception $previous = null
) {
$this->error = $error;
parent::__construct($message, $httpStatus, $uri, $previous);
}
- public function getErrorCode()
+ public function getErrorCode(): string
{
return $this->error;
}
diff --git a/vendor/maxmind/web-service-common/src/Exception/IpAddressNotFoundException.php b/vendor/maxmind/web-service-common/src/Exception/IpAddressNotFoundException.php
index 1a743a1..3bd2ce9 100644
--- a/vendor/maxmind/web-service-common/src/Exception/IpAddressNotFoundException.php
+++ b/vendor/maxmind/web-service-common/src/Exception/IpAddressNotFoundException.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace MaxMind\Exception;
class IpAddressNotFoundException extends InvalidRequestException
diff --git a/vendor/maxmind/web-service-common/src/Exception/PermissionRequiredException.php b/vendor/maxmind/web-service-common/src/Exception/PermissionRequiredException.php
index 48c7a66..cd20202 100644
--- a/vendor/maxmind/web-service-common/src/Exception/PermissionRequiredException.php
+++ b/vendor/maxmind/web-service-common/src/Exception/PermissionRequiredException.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace MaxMind\Exception;
/**
diff --git a/vendor/maxmind/web-service-common/src/Exception/WebServiceException.php b/vendor/maxmind/web-service-common/src/Exception/WebServiceException.php
index e227810..704e63c 100644
--- a/vendor/maxmind/web-service-common/src/Exception/WebServiceException.php
+++ b/vendor/maxmind/web-service-common/src/Exception/WebServiceException.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace MaxMind\Exception;
/**