Skip to content

Commit c6f3d57

Browse files
committed
refactor: use Services::superglobals()
1 parent f35dc9b commit c6f3d57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/Test/FeatureTestTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ protected function setupRequest(string $method, ?string $path = null): IncomingR
277277
$path = $parts[0];
278278
$query = $parts[1] ?? '';
279279

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

282283
$uri->setPath($path);
283284
$uri->setQuery($query);

0 commit comments

Comments
 (0)