1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-03 23:42:28 +03:00

Updated cover image methods so image parameter is not optional but still nullable

This commit is contained in:
Dan Brown
2020-02-15 18:38:36 +00:00
parent 98ab3c1ffb
commit 5978d9a0d3
4 changed files with 4 additions and 4 deletions

View File

@@ -108,7 +108,7 @@ class BookRepo
* @throws ImageUploadException
* @throws Exception
*/
public function updateCoverImage(Book $book, UploadedFile $coverImage = null, bool $removeImage = false)
public function updateCoverImage(Book $book, ?UploadedFile $coverImage, bool $removeImage = false)
{
$this->baseRepo->updateCoverImage($book, $coverImage, $removeImage);
}