diff --git a/Uri/Http.php b/Uri/Http.php index c410ecbe4..12395aa18 100644 --- a/Uri/Http.php +++ b/Uri/Http.php @@ -281,7 +281,7 @@ class Http implements UriInterface /** * {@inheritdoc} */ - public function getQuery(string $key = null) /* : ?string */ + public function getQuery(string $key = null) : string { if(isset($key)) { $key = strtolower($key); diff --git a/Uri/UriInterface.php b/Uri/UriInterface.php index 50617e95c..1638df2a4 100644 --- a/Uri/UriInterface.php +++ b/Uri/UriInterface.php @@ -117,11 +117,11 @@ interface UriInterface * * @param string $key Query key * - * @return string|array + * @return string * * @since 1.0.0 */ - public function getQuery(string $key = null); + public function getQuery(string $key = null) : string; /** * Get fragment.