Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Explicit cast for ProviderV1Adapter
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Aug 20, 2019
commit d3d37aa19da8b7ea1ba425b4ceed6439bcb1a6a4
4 changes: 2 additions & 2 deletions lib/private/Preview/ProviderV1Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ public function __construct(IProvider $providerV1) {
}

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 {
Expand Down