Skip to content

Commit

Permalink
Fixed check for rebasable URLs
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wright <tom@inflatablecookie.com>
  • Loading branch information
betterthanclay committed Nov 8, 2023
1 parent 8ad3a60 commit 2ffd854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Fixed check for rebasable URLs

## v0.2.5 (2023-11-08)
* Added URL rebasing
* Enforced Stringable interface
Expand Down
3 changes: 2 additions & 1 deletion src/Singularity.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use DecodeLabs\Singularity\Uri;
use DecodeLabs\Singularity\Url;
use DecodeLabs\Singularity\Url\Generic as GenericUrl;
use DecodeLabs\Singularity\Url\Rebasable;
use DecodeLabs\Singularity\Urn;
use DecodeLabs\Singularity\Urn\Generic as GenericUrn;
use Psr\Http\Message\UriInterface as PsrUri;
Expand Down Expand Up @@ -85,7 +86,7 @@ public static function url(
}

if (
$output !== null &&
$output instanceof Rebasable &&
$relativeTo !== null
) {
$relativeTo = self::url($relativeTo);
Expand Down

0 comments on commit 2ffd854

Please sign in to comment.