Fix the possibility to override an aliased block (via use)

This commit is contained in:
Fabien Potencier
2024-09-25 22:07:53 +02:00
parent 3ddab4f8b4
commit 955611d5bb
4 changed files with 29 additions and 2 deletions
+5 -1
View File
@@ -244,7 +244,11 @@ final class ModuleNode extends Node
->string($key)
->raw(\sprintf(']; unset($_trait_%s_blocks[', $i))
->string($key)
->raw("]);\n\n")
->raw("]); \$this->traitAliases[")
->subcompile($value)
->raw("] = ")
->string($key)
->raw(";\n\n")
;
}
}