diff --git a/src/Responsive.php b/src/Responsive.php index 2eefc92..76295fe 100644 --- a/src/Responsive.php +++ b/src/Responsive.php @@ -33,7 +33,7 @@ public function __construct($assetParam, Parameters $parameters) $assetParam = $assetParam->value()['src']; } - $this->asset = $this->retrieveAsset($assetParam); + $this->asset = $this->retrieveAsset($assetParam)->hydrate(); if ((int) $this->asset->width() === 0 || (int) $this->asset->height() === 0) { throw InvalidAssetException::zeroWidthOrHeight($this->asset);