Skip to content

Commit 901f9d1

Browse files
author
Fredrick Peter
committed
absolute path update
1 parent 89c819e commit 901f9d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Prior to installing `support package` get the [Composer](https://getcomposer.org
3333
**Step 1** — update your `composer.json`:
3434
```composer.json
3535
"require": {
36-
"tamedevelopers/support": "^1.0.2"
36+
"tamedevelopers/support": "^1.0.3"
3737
}
3838
```
3939

Traits/ServerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private static function createAbsoluteDomain(?string $serverPath = null)
227227
$docRoot = $_SERVER['DOCUMENT_ROOT'];
228228

229229
// Get the server name (hostname)
230-
$serverName = $_SERVER['SERVER_NAME'];
230+
$serverName = $_SERVER['SERVER_NAME'] ?? null;
231231

232232
// Replace Document root inside server path
233233
$domainPath = str_replace($docRoot, '', $serverPath);

0 commit comments

Comments
 (0)