Fixed condition default
This commit is contained in:
parent
ad7fe80236
commit
248499dc60
|
@ -20,7 +20,7 @@ class Condition extends Data
|
||||||
|
|
||||||
public static function fromMedia(Media $media): self
|
public static function fromMedia(Media $media): self
|
||||||
{
|
{
|
||||||
return $media->getCustomProperty('conditions') ? static::withoutMagicalCreationFrom($media->getCustomProperty('conditions')) : static::default();
|
return $media->getCustomProperty('conditions') ? static::withoutMagicalCreationFrom($media->getCustomProperty('conditions')) : static::defaults();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function defaults(): self
|
public static function defaults(): self
|
||||||
|
|
Loading…
Reference in New Issue