Skip to content

Commit

Permalink
Merge pull request #4887 from mhsdesign/bugfix/privatePropsObscureError
Browse files Browse the repository at this point in the history
BUGFIX: Private props obscure error
  • Loading branch information
mhsdesign authored Feb 15, 2024
2 parents 665f232 + dced150 commit 7ec7cb7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Neos.Fusion/Classes/FusionObjects/Helpers/LazyReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ public function deref(): mixed
}

$this->isLocked = true;
$this->value = ($this->calculateValueCallback)();
$this->hasBeenDereferenced = true;
try {
$this->value = ($this->calculateValueCallback)();
} finally {
$this->hasBeenDereferenced = true;
}

return $this->value;
}
Expand Down

0 comments on commit 7ec7cb7

Please sign in to comment.