Skip to content

Commit

Permalink
Task use assert instead of var annotation
Browse files Browse the repository at this point in the history
Co-authored-by: Bastian Waidelich <[email protected]>
  • Loading branch information
mhsdesign and bwaidelich authored Nov 17, 2023
1 parent e512a8d commit 73fb745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Neos.Neos/Classes/Fusion/ConvertUrisImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ public function evaluate()
), 1382624087);
}

/** @var RenderingMode $renderingMode */
$renderingMode = $this->runtime->fusionGlobals->get('renderingMode');
assert($renderingMode instanceof RenderingMode);
if ($renderingMode->isEdit && $this->fusionValue('forceConversion') !== true) {
return $text;
}
Expand Down

0 comments on commit 73fb745

Please sign in to comment.