diff --git a/lib/Controller/TemplatesController.php b/lib/Controller/TemplatesController.php index 1724f66091..e59a0396e5 100644 --- a/lib/Controller/TemplatesController.php +++ b/lib/Controller/TemplatesController.php @@ -195,11 +195,11 @@ public function delete($fileId) { */ private function fetchPreview( Node $node, - $x, - $y, - $a = false, - $forceIcon = true, - string $mode): Http\Response { + int $x, + int $y, + bool $a = false, + bool $forceIcon = true, + string $mode = IPreview::MODE_FILL): Http\Response { if (!($node instanceof Node) || (!$forceIcon && !$this->preview->isAvailable($node))) { return new DataResponse([], Http::STATUS_NOT_FOUND);