Skip to content

Commit

Permalink
FIX Cast absoluteUrl() argument to string
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Dec 8, 2022
1 parent 3495084 commit 459d421
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ public function getAbsoluteURL()
{
$url = $this->getURL();
if ($url) {
return Director::absoluteURL($url);
return Director::absoluteURL((string) $url);
}
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/DBFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public function getAbsoluteURL()
if (!$this->exists()) {
return null;
}
return Director::absoluteURL($this->getURL());
return Director::absoluteURL((string) $this->getURL());
}

public function getMetaData()
Expand Down

0 comments on commit 459d421

Please sign in to comment.