mirror of
https://github.com/YGGverse/net-php.git
synced 2025-03-13 05:51:23 +00:00
fix absolute address detection
This commit is contained in:
parent
b28658d041
commit
5ae447bcf0
@ -83,7 +83,9 @@ class Address
|
|||||||
|
|
||||||
public function isAbsolute(): bool
|
public function isAbsolute(): bool
|
||||||
{
|
{
|
||||||
return ($this->_scheme && $this->_host);
|
return boolval(
|
||||||
|
$this->_scheme || $this->_host
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isRelative(): bool
|
public function isRelative(): bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user