Skip to content

Commit

Permalink
Issue CollaboraOnline#56: Use (string) cast instead of strval().
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed Nov 12, 2024
1 parent 5280e87 commit ee4d7f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cool/CoolRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function getWopiClientURL() {
);
}

$wopi_src = strval($this->getWopiSrcUrl($discovery_parsed, 'text/plain')[0]);
$wopi_src = (string) $this->getWopiSrcUrl($discovery_parsed, 'text/plain')[0];
if (!$wopi_src) {
throw new CoolRequestException(
'The requested mime type is not handled.',
Expand Down

0 comments on commit ee4d7f5

Please sign in to comment.