Skip to content

Commit

Permalink
Merge pull request #245 from Berdir/remove-server-keys
Browse files Browse the repository at this point in the history
Remove unecessary/incorrectly initialized server variables, fixes PHP 8.1 deprecated notice
  • Loading branch information
jhedstrom authored Apr 25, 2022
2 parents 1b0d177 + 5d388f0 commit d7c38bd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Cores/Drupal8.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,6 @@ public function validateDrupalSite() {
}

$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] = $_SERVER['PHP_SELF'];
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
$_SERVER['REQUEST_METHOD'] = NULL;

$_SERVER['SERVER_SOFTWARE'] = NULL;
$_SERVER['HTTP_USER_AGENT'] = NULL;

$conf_path = DrupalKernel::findSitePath(Request::createFromGlobals());
$conf_file = $this->drupalRoot . "/$conf_path/settings.php";
Expand Down

0 comments on commit d7c38bd

Please sign in to comment.