mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-04 10:57:04 +00:00
Improve macro call performance
This commit is contained in:
@@ -68,7 +68,7 @@ class MacroReferenceTest extends TestCase
|
||||
$compiler->compile($node);
|
||||
|
||||
$this->assertStringContainsString('->call(', $compiler->getSource());
|
||||
$this->assertStringContainsString('($context["name"] ?? null), [], $context, 1, $this->getSourceContext())', $compiler->getSource());
|
||||
$this->assertStringContainsString('($context["name"] ?? null), [], $context, 1, $this->source)', $compiler->getSource());
|
||||
$this->assertStringNotContainsString("'macro_'.", $compiler->getSource());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user