File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ public function hasQueryParameter($name)
324
324
*/
325
325
public function getQueryParameters ()
326
326
{
327
- return empty ( $ this -> info [ ' query ' ]) ? [] : $ this ->info ['query ' ];
327
+ return $ this ->info ['query ' ];
328
328
}
329
329
330
330
/**
@@ -442,14 +442,16 @@ protected function parseUrl($url)
442
442
443
443
$ this ->info = parse_url ($ url );
444
444
445
- if (isset ($ this ->info ['query ' ])) {
445
+ if (empty ($ this ->info ['query ' ])) {
446
+ $ this ->info ['query ' ] = [];
447
+ } else {
446
448
$ queryString = preg_replace_callback ('/(^|(?<=&))[^=[&]+/ ' , function ($ key ) {
447
449
return base64_encode (urldecode ($ key [0 ]));
448
450
}, $ this ->info ['query ' ]);
449
451
450
452
parse_str ($ queryString , $ query );
451
453
452
- $ this ->info ['query ' ] = self ::fixQuery ($ query );
454
+ $ this ->info ['query ' ] = $ query ? self ::fixQuery ($ query ) : [] ;
453
455
}
454
456
455
457
if (isset ($ this ->info ['path ' ])) {
You can’t perform that action at this time.
0 commit comments