1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +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

@ -76,7 +76,7 @@ class BaseRepo
* @throws ImageUploadException
* @throws \Exception
*/
public function updateCoverImage(HasCoverImage $entity, UploadedFile $coverImage = null, bool $removeImage = false)
public function updateCoverImage(HasCoverImage $entity, ?UploadedFile $coverImage, bool $removeImage = false)
{
if ($coverImage) {
$this->imageRepo->destroyImage($entity->cover);