Skip to content

Commit 942ebfb

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: CS: Apply ternary_to_null_coalescing fixer
2 parents db29368 + ff176de commit 942ebfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AbstractBrowser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function setServerParameter(string $key, string $value)
147147
*/
148148
public function getServerParameter(string $key, $default = '')
149149
{
150-
return isset($this->server[$key]) ? $this->server[$key] : $default;
150+
return $this->server[$key] ?? $default;
151151
}
152152

153153
public function xmlHttpRequest(string $method, string $uri, array $parameters = [], array $files = [], array $server = [], string $content = null, bool $changeHistory = true): Crawler
@@ -647,7 +647,7 @@ protected function getAbsoluteUri(string $uri)
647647
} else {
648648
$currentUri = sprintf('http%s://%s/',
649649
isset($this->server['HTTPS']) ? 's' : '',
650-
isset($this->server['HTTP_HOST']) ? $this->server['HTTP_HOST'] : 'localhost'
650+
$this->server['HTTP_HOST'] ?? 'localhost'
651651
);
652652
}
653653

0 commit comments

Comments
 (0)