From 0d6c0b2fc897d46e8fe69cec6aba70ef5b15baa0 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 26 Oct 2017 19:55:06 +0200 Subject: [PATCH] Fix interface compliance --- Uri/Http.php | 2 +- Uri/UriInterface.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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.