Skip to content

Commit

Permalink
[framework] Fix create ImageTypeNotFoundException with null imageType…
Browse files Browse the repository at this point in the history
… attr (#3334)

Co-authored-by: Milan Staňo <milan.stano@shopsys.com>
  • Loading branch information
2 people authored and TomasLudvik committed Sep 2, 2024
1 parent cf964a6 commit 8a516d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Component/Image/Config/ImageEntityConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ public function isMultiple(?string $type): bool
return $this->multipleByType[$key];
}

throw new ImageTypeNotFoundException($this->entityClass, $type);
throw new ImageTypeNotFoundException($this->entityClass, $key);
}
}

0 comments on commit 8a516d8

Please sign in to comment.