Skip to content

Commit

Permalink
Merge pull request #494 from teohhanhui/fix-request-parser
Browse files Browse the repository at this point in the history
Fix an issue in RequestParser when the query string is null
  • Loading branch information
teohhanhui committed Apr 6, 2016
2 parents d7ce490 + c6ac2ed commit bdae24c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/RequestParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract class RequestParser
*/
public static function parseAndDuplicateRequest(Request $request) : Request
{
$query = self::parseRequestParams($request->getQueryString());
$query = self::parseRequestParams($request->getQueryString() ?? '');
$body = self::parseRequestParams($request->getContent());

return $request->duplicate($query, $body);
Expand Down

0 comments on commit bdae24c

Please sign in to comment.