Skip to content

Commit

Permalink
BUGFIX: Make return type of getUploadedImage() nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
kdambekalns authored and bwaidelich committed Jun 17, 2020
1 parent b299641 commit ef1dbcf
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 ef1dbcf

Please sign in to comment.