Browse Source

fix absolute address detection

main 1.8.1
yggverse 3 months ago
parent
commit
5ae447bcf0
  1. 4
      src/Address.php

4
src/Address.php

@ -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…
Cancel
Save