Skip to content

Commit

Permalink
Merge pull request #56 from bwaidelich/patch-2
Browse files Browse the repository at this point in the history
Fix DummyImageSource::withVariantPreset()
  • Loading branch information
mficzel committed May 10, 2022
2 parents 0fd7d17 + b6c87af commit 6a2ea79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/DummyImageSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct(string $baseUri, ?string $title = null, ?string $alt
public function withVariantPreset(string $presetIdentifier, string $presetVariantName): ImageSourceInterface
{
/** @var DummyImageSource $newSource */
$newSource = parent::useVariantPreset($presetIdentifier, $presetVariantName);
$newSource = parent::withVariantPreset($presetIdentifier, $presetVariantName);

if ($newSource->targetImageVariant !== []) {
$targetBox = $this->estimateDimensionsFromVariantPresetAdjustments($presetIdentifier, $presetVariantName);
Expand Down

0 comments on commit 6a2ea79

Please sign in to comment.