Skip to content

Commit d35ee2e

Browse files
shyimpweyck
authored andcommitted
NEXT-37398 - Improve validation of feature flag name in FeatureCallSilentToken
1 parent 63c0561 commit d35ee2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Framework/Adapter/Twig/Node/FeatureCallSilentToken.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ public function compile(Compiler $compiler): void
2222
{
2323
$compiler
2424
->addDebugInfo($this)
25-
->raw('\Shopware\Core\Framework\Feature::callSilentIfInactive(\'' . $this->flag . '\', function () use(&$context) { ')
25+
->raw('\Shopware\Core\Framework\Feature::callSilentIfInactive(')
26+
->string($this->flag)
27+
->raw(', function () use(&$context) { ')
2628
->subcompile($this->getNode('body'))
2729
->raw('});');
2830
}

0 commit comments

Comments
 (0)