do not drop none digit characters from generated variable names

This commit is contained in:
Christian Flothmann
2024-10-24 17:35:30 +02:00
parent 1d22d300fa
commit 5b0209ffa3
+1 -1
View File
@@ -41,7 +41,7 @@ class TempNameExpression extends AbstractExpression
public function compile(Compiler $compiler): void
{
if (null === $this->getAttribute('name')) {
$this->setAttribute('name', \sprintf('_l%d', $compiler->getVarName()));
$this->setAttribute('name', $compiler->getVarName());
}
$compiler->raw('$'.$this->getAttribute('name'));