Skip to content

Commit

Permalink
NEXT-37398 - Improve validation of feature flag name in FeatureCallSi…
Browse files Browse the repository at this point in the history
…lentToken
  • Loading branch information
shyim authored and pweyck committed Aug 8, 2024
1 parent 63c0561 commit d35ee2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Framework/Adapter/Twig/Node/FeatureCallSilentToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public function compile(Compiler $compiler): void
{
$compiler
->addDebugInfo($this)
->raw('\Shopware\Core\Framework\Feature::callSilentIfInactive(\'' . $this->flag . '\', function () use(&$context) { ')
->raw('\Shopware\Core\Framework\Feature::callSilentIfInactive(')
->string($this->flag)
->raw(', function () use(&$context) { ')
->subcompile($this->getNode('body'))
->raw('});');
}
Expand Down

0 comments on commit d35ee2e

Please # to comment.