aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-08-20 22:28:43 +0200
committerGitHub <noreply@github.com>2019-08-20 22:28:43 +0200
commit1dda6fb05b1f535e9916da7ff9381bc2b984d04a (patch)
tree4e40ac3ec1b726acbbc94882af411c14f0bf43fc /lib
parent148c6e6f28bd94e07c935e0e65031349b4d5dcee (diff)
parentd3d37aa19da8b7ea1ba425b4ceed6439bcb1a6a4 (diff)
downloadnextcloud-server-1dda6fb05b1f535e9916da7ff9381bc2b984d04a.tar.gz
nextcloud-server-1dda6fb05b1f535e9916da7ff9381bc2b984d04a.zip
Merge pull request #16812 from nextcloud/bugfix/noid/previewv1-returntype
Explicit cast for ProviderV1Adapter
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Preview/ProviderV1Adapter.php4
1 files changed, 2 insertions, 2 deletions
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 {