Skip to content

Commit

Permalink
refactor: use Services::superglobals()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Aug 16, 2023
1 parent f35dc9b commit c6f3d57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/Test/FeatureTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ protected function setupRequest(string $method, ?string $path = null): IncomingR
$path = $parts[0];
$query = $parts[1] ?? '';

$_SERVER['QUERY_STRING'] = $query;
$superglobals = Services::superglobals();
$superglobals->setServer('QUERY_STRING', $query);

$uri->setPath($path);
$uri->setQuery($query);
Expand Down

0 comments on commit c6f3d57

Please sign in to comment.