Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1e203f commit 9f6c47dCopy full SHA for 9f6c47d
src/TwigJs/Compiler/Expression/ConstantCompiler.php
@@ -44,7 +44,7 @@ public function compile(JsCompiler $compiler, Node $node)
44
);
45
}
46
47
- if ($compiler->isTemplateName || preg_match('/\.twig$/', $node->getAttribute('value'))) {
+ if ($compiler->isTemplateName || preg_match('/\.twig$/', (string) $node->getAttribute('value'))) {
48
$compiler->repr($this->getTemplateNameFromTemplateConstant($compiler, $node));
49
50
return;
0 commit comments