From d3d37aa19da8b7ea1ba425b4ceed6439bcb1a6a4 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Tue, 20 Aug 2019 15:47:59 +0200 Subject: Explicit cast for ProviderV1Adapter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/private/Preview/ProviderV1Adapter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private') diff --git a/lib/private/Preview/ProviderV1Adapter.php b/lib/private/Preview/ProviderV1Adapter.php index 903a7904bf8..0685193eb5b 100644 --- a/lib/private/Preview/ProviderV1Adapter.php +++ b/lib/private/Preview/ProviderV1Adapter.php @@ -36,11 +36,11 @@ class ProviderV1Adapter implements IProviderV2 { } public function getMimeType(): string { - return $this->providerV1->getMimeType(); + return (string)$this->providerV1->getMimeType(); } public function isAvailable(FileInfo $file): bool { - return $this->providerV1->isAvailable($file); + return (bool)$this->providerV1->isAvailable($file); } public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage { -- cgit v1.2.3