Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f6c47d

Browse files
committed
8.1
1 parent a1e203f commit 9f6c47d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwigJs/Compiler/Expression/ConstantCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function compile(JsCompiler $compiler, Node $node)
4444
);
4545
}
4646

47-
if ($compiler->isTemplateName || preg_match('/\.twig$/', $node->getAttribute('value'))) {
47+
if ($compiler->isTemplateName || preg_match('/\.twig$/', (string) $node->getAttribute('value'))) {
4848
$compiler->repr($this->getTemplateNameFromTemplateConstant($compiler, $node));
4949

5050
return;

0 commit comments

Comments
 (0)