Improve macro call performance

This commit is contained in:
Fabien Potencier
2026-09-18 18:29:34 +01:00
parent 66406ea727
commit a8ee6dd762
6 changed files with 56 additions and 3 deletions
+1 -1
View File
@@ -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());
}
}