diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-08-20 15:47:59 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-08-20 15:47:59 +0200 |
commit | d3d37aa19da8b7ea1ba425b4ceed6439bcb1a6a4 (patch) | |
tree | f27ba797fb9ae44aa235c5045e666147e09ecc97 /lib | |
parent | 650e4f9f4c44cf55c28d0e6f7be988056cc6897c (diff) | |
download | nextcloud-server-d3d37aa19da8b7ea1ba425b4ceed6439bcb1a6a4.tar.gz nextcloud-server-d3d37aa19da8b7ea1ba425b4ceed6439bcb1a6a4.zip |
Explicit cast for ProviderV1Adapter
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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 { |