X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/07b889547d28e68e5fc8f923c166bd607da17ad7..refs/pull/3333/head:/app/Uploads/Image.php diff --git a/app/Uploads/Image.php b/app/Uploads/Image.php index 6fa5db2a5..bdf10f080 100644 --- a/app/Uploads/Image.php +++ b/app/Uploads/Image.php @@ -1,33 +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(); }