fix absolute address detection

This commit is contained in:
yggverse 2024-07-11 10:10:13 +03:00
parent b28658d041
commit 5ae447bcf0

View File

@ -83,7 +83,9 @@ class Address
public function isAbsolute(): bool
{
return ($this->_scheme && $this->_host);
return boolval(
$this->_scheme || $this->_host
);
}
public function isRelative(): bool