Skip to content

Commit

Permalink
Fix DummyImageSource::withVariantPreset()
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaidelich authored May 9, 2022
1 parent 0fd7d17 commit b6c87af
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 b6c87af

Please sign in to comment.