Merge pull request #16812 from nextcloud/bugfix/noid/previewv1-returntype

Explicit cast for ProviderV1Adapter
This commit is contained in:
Roeland Jago Douma 2019-08-20 22:28:43 +02:00 committed by GitHub
commit 1dda6fb05b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -36,11 +36,11 @@ class ProviderV1Adapter implements IProviderV2 {
} }
public function getMimeType(): string { public function getMimeType(): string {
return $this->providerV1->getMimeType(); return (string)$this->providerV1->getMimeType();
} }
public function isAvailable(FileInfo $file): bool { 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 { public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {