Skip to content

Commit

Permalink
Merge pull request #104 from muskie9/pull/deprecationTrait
Browse files Browse the repository at this point in the history
DEPRECATION FIX Accessing static trait property
  • Loading branch information
muskie9 authored Mar 24, 2023
2 parents 8497158 + 8afa5ea commit 6068d6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TypeHandler/Asset/AssetHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ protected function getAssetBySalsifyID($id)
foreach ($assetGenerator as $name => $data) {
if ($data['salsify:id'] == $id) {
$asset = $data;
$assetGenerator->send(Yieldable::$STOP_GENERATOR);
$owner = $this->owner;
$assetGenerator->send($owner::$STOP_GENERATOR);
}
}
return $asset;
Expand Down

0 comments on commit 6068d6c

Please sign in to comment.