Skip to content

Commit a4ea881

Browse files
committed
minor symfony#16566 [HttpFoundation] Fix undefined array $server (belka-ew)
This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes symfony#16566). Discussion ---------- [HttpFoundation] Fix undefined array $server | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | $server variable isn't defined in the test /src/Symfony/Component/HttpFoundation/Tests/RequestTest.php:RequestTest Commits ------- 75aa6f6 Fix undefined array $server
2 parents 040b409 + 75aa6f6 commit a4ea881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Tests/RequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ public function testGetUserInfo()
570570
{
571571
$request = new Request();
572572

573-
$server['PHP_AUTH_USER'] = 'fabien';
573+
$server = array('PHP_AUTH_USER' => 'fabien');
574574
$request->initialize(array(), array(), array(), array(), array(), $server);
575575
$this->assertEquals('fabien', $request->getUserInfo());
576576

0 commit comments

Comments
 (0)