Skip to content

Commit

Permalink
fix: UndefinedVariable due to merge mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Dec 22, 2023
1 parent 8a8fed9 commit 21d03c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions system/Test/FeatureTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ protected function setupHeaders(IncomingRequest $request)
* Always populate the GET vars based on the URI.
*
* @param string $name Superglobal name (lowercase)
* @param string $method HTTP verb
* @param non-empty-array|null $params
*
* @return Request
Expand All @@ -370,7 +369,7 @@ protected function populateGlobals(string $name, Request $request, ?array $param
{
// $params should set the query vars if present,
// otherwise set it from the URL.
$get = ($params !== null && $params !== [] && $method === 'get')
$get = ($params !== null && $params !== [] && $name === 'get')
? $params
: $this->getPrivateProperty($request->getUri(), 'query');

Expand Down

0 comments on commit 21d03c1

Please sign in to comment.