Skip to content

Commit

Permalink
Merge pull request #111 from kdambekalns/bugfix/nullable-return-getup…
Browse files Browse the repository at this point in the history
…loadedimage

BUGFIX: Make return type of getUploadedImage() nullable
  • Loading branch information
albe committed Jun 9, 2020
2 parents e445ee5 + bfec80d commit 3a6122d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Form/UploadedImageViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function render(): string
* @throws \Neos\Flow\Property\Exception
* @throws \Neos\Flow\Security\Exception
*/
protected function getUploadedImage(): Image
protected function getUploadedImage(): ?Image
{
if ($this->getMappingResultsForProperty()->hasErrors()) {
return null;
Expand Down

0 comments on commit 3a6122d

Please sign in to comment.