From ee4d7f538ee359c35f7325e9eb802c266195fef7 Mon Sep 17 00:00:00 2001 From: Andreas Hennings Date: Tue, 12 Nov 2024 23:18:50 +0100 Subject: [PATCH] Issue #56: Use (string) cast instead of strval(). --- src/Cool/CoolRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cool/CoolRequest.php b/src/Cool/CoolRequest.php index e9f357c8..89c03580 100644 --- a/src/Cool/CoolRequest.php +++ b/src/Cool/CoolRequest.php @@ -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.',