Skip to content

Commit

Permalink
Empty srcCache on cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsunet committed Nov 2, 2023
1 parent 71aab49 commit 7444ea8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Classes/Domain/AssetImageSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class AssetImageSource extends AbstractScalableImageSource
*
* @var string|null
*/
protected $srcCache = null;
private $srcCache = null;

/**
* @param ImageInterface $asset
Expand Down Expand Up @@ -151,4 +151,9 @@ public function src(): string

return $this->srcCache;
}

public function __clone(): void
{
$this->srcCache = null;
}
}

0 comments on commit 7444ea8

Please sign in to comment.