X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/b94b945fb03e21a1997cfe6e50148967586cb26d..refs/pull/3210/head:/app/Uploads/Image.php diff --git a/app/Uploads/Image.php b/app/Uploads/Image.php index c76979d7c..bdf10f080 100644 --- a/app/Uploads/Image.php +++ b/app/Uploads/Image.php @@ -1,34 +1,45 @@ -make(ImageService::class)->getThumbnail($this, $width, $height, $keepRatio); } /** * Get the page this image has been uploaded to. * Only applicable to gallery or drawio image types. - * @return Page|null */ - public function getPage() + public function getPage(): ?Page { return $this->belongsTo(Page::class, 'uploaded_to')->first(); }