Explicit cast for ProviderV1Adapter

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-08-20 15:47:59 +02:00
parent 650e4f9f4c
commit d3d37aa19d
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -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 {