Skip to content

Commit

Permalink
fix absolute address detection
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Jul 11, 2024
1 parent b28658d commit 5ae447b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ public function __construct(?string $address = null)

public function isAbsolute(): bool
{
return ($this->_scheme && $this->_host);
return boolval(
$this->_scheme || $this->_host
);
}

public function isRelative(): bool
Expand Down

0 comments on commit 5ae447b

Please sign in to comment.