Fix interface compliance

This commit is contained in:
Dennis Eichhorn 2017-10-26 19:55:06 +02:00
parent d3732ed8d7
commit 0d6c0b2fc8
2 changed files with 3 additions and 3 deletions

View File

@ -281,7 +281,7 @@ class Http implements UriInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function getQuery(string $key = null) /* : ?string */ public function getQuery(string $key = null) : string
{ {
if(isset($key)) { if(isset($key)) {
$key = strtolower($key); $key = strtolower($key);

View File

@ -117,11 +117,11 @@ interface UriInterface
* *
* @param string $key Query key * @param string $key Query key
* *
* @return string|array * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getQuery(string $key = null); public function getQuery(string $key = null) : string;
/** /**
* Get fragment. * Get fragment.