Fix some PHP8.1 issues if possible

This commit is contained in:
Philipp 2022-11-09 23:16:12 +01:00
parent 3b03da3259
commit 477bec1977
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
4 changed files with 9 additions and 9 deletions

View file

@ -485,11 +485,11 @@ class Network
$get('host') .
($port ? ":$port" : '');
return (strlen($scheme) ? $scheme . ':' : '') .
(strlen($authority) ? '//' . $authority : '') .
return (!empty($scheme) ? $scheme . ':' : '') .
(!empty($authority) ? '//' . $authority : '') .
$get('path') .
(strlen($query) ? '?' . $query : '') .
(strlen($fragment) ? '#' . $fragment : '');
(!empty($query) ? '?' . $query : '') .
(!empty($fragment) ? '#' . $fragment : '');
}
/**