mirror of
https://github.com/YGGverse/net-php.git
synced 2026-03-31 17:15:35 +00:00
fix absolute address detection
This commit is contained in:
parent
b28658d041
commit
5ae447bcf0
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue