diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-08-20 22:28:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-20 22:28:43 +0200 |
commit | 1dda6fb05b1f535e9916da7ff9381bc2b984d04a (patch) | |
tree | 4e40ac3ec1b726acbbc94882af411c14f0bf43fc /lib | |
parent | 148c6e6f28bd94e07c935e0e65031349b4d5dcee (diff) | |
parent | d3d37aa19da8b7ea1ba425b4ceed6439bcb1a6a4 (diff) | |
download | nextcloud-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.php | 4 |
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 { |