We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c71fb8 commit 4699f3dCopy full SHA for 4699f3d
src/PhpXsendfile.php
@@ -154,7 +154,7 @@ protected function detectServer(): void
154
$this->server = $this->config['server'];
155
}
156
else {
157
- $serverSoftware = $_SERVER['SERVER_SOFTWARE'] ? $_SERVER['SERVER_SOFTWARE'] : null;
+ $serverSoftware = $_SERVER['SERVER_SOFTWARE'] ?? null;
158
159
foreach ($servers as $name => $label) {
160
if (stripos($serverSoftware, $name) !== false) {
0 commit comments