Skip to content

Commit 3b4f253

Browse files
authored
Merge pull request #57 from webrium/Improved-handling-of-null-values
Improved handling of null values
2 parents cfe4c9f + 645422b commit 3b4f253

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Url.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ public static function scheme($full=false)
3333

3434
public static function domain()
3535
{
36-
return $_SERVER['HTTP_HOST'];
36+
return $_SERVER['HTTP_HOST']??'';
3737
}
3838

3939
public static function method()
4040
{
41-
return $_SERVER['REQUEST_METHOD'];
41+
return $_SERVER['REQUEST_METHOD']??'';
4242
}
4343

4444
public static function home()

0 commit comments

Comments
 (0)