summaryrefslogtreecommitdiffstats
path: root/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php')
-rw-r--r--vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php16
1 files changed, 10 insertions, 6 deletions
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;
}