Skip to content

Commit 1db5777

Browse files
authored
Fix netteConnector with phpunit10 (#41)
1 parent b7fa4cc commit 1db5777

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Connector/NetteConnector.php

+2
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ public function setContainerAccessor(callable $containerAccessor): void
3131
*/
3232
public function doRequest($request): Response
3333
{
34+
$phpSelf = $_SERVER['PHP_SELF'];
3435
$_COOKIE = $request->getCookies();
3536
$_SERVER = $request->getServer();
3637
$_FILES = $request->getFiles();
3738

39+
$_SERVER['PHP_SELF'] = $phpSelf;
3840
$_SERVER['REQUEST_METHOD'] = $method = strtoupper($request->getMethod());
3941
$_SERVER['REQUEST_URI'] = str_replace('http://localhost', '', $request->getUri());
4042
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';

0 commit comments

Comments
 (0)