Actions
Bug #86520
closedUri->getQuery() must never return null
Start date:
2018-10-01
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
Description
As stated in the UriInterface:
/**
* The query part of the URI without the ?
* @var string
*/
protected $query;
/**
* Retrieve the query string of the URI.
*
* If no query string is present, this method MUST return an empty string.
*
* [...]
*
* @see https://tools.ietf.org/html/rfc3986#section-2
* @see https://tools.ietf.org/html/rfc3986#section-3.4
* @return string The URI query string.
*/
public function getQuery()
{
return $this->query;
}
But currently on requests without a Query this method returns null
Actions