Skip to content

Commit

Permalink
BUGFIX: fix errors during site:import
Browse files Browse the repository at this point in the history
This adjusts the annotation to work with Flow 8.3.13  ... before the type with spaces was interpreted as `mixed` and caused the following error during site:import.

```
During the import of the "Sites.xml" from the package "Neos.Demo" an exception occurred: Error: During import an exception occurred: "Could not convert target type "Neos\Media\Domain\Model\ImageVariant": Could not convert target type "Neos\Media\Domain\Model\Adjustment\CropImageAdjustment", at property path "aspectRatio": Could not find a suitable type converter for "mixed" because the class / interface "mixed" does not exist."., see log for further information.
```

Resolves: neos#5448
  • Loading branch information
mficzel committed Jan 22, 2025
1 parent 796fe8f commit e35d4de
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,8 @@ public function getY(): ?int

/**
* This setter accepts strings in order to make configuration / mapping of settings easier.
*
* @param AspectRatio | string | null $aspectRatio
*/
public function setAspectRatio($aspectRatio = null): void
public function setAspectRatio(AspectRatio|string|null $aspectRatio = null): void
{
if ($aspectRatio === null) {
$this->aspectRatioAsString = null;
Expand Down

0 comments on commit e35d4de

Please sign in to comment.