diff --git a/src/Node/ComponentNode.php b/src/Node/ComponentNode.php index 1b31297..0975051 100644 --- a/src/Node/ComponentNode.php +++ b/src/Node/ComponentNode.php @@ -23,8 +23,6 @@ public function __construct(string $path, Node $slot, ?AbstractExpression $varia $this->configuration = $configuration; $this->setAttribute('path', $path); $this->setNode('slot', $slot); - // TODO: Convert variables keys to camel case - $this->setNode('camelCaseVariables', $variables); } public function compile(Compiler $compiler): void @@ -97,8 +95,8 @@ protected function addTemplateArguments(Compiler $compiler) ->indent(-1) ->write("],"); - if ($this->hasNode('camelCaseVariables')) { - $compiler->subcompile($this->getNode('camelCaseVariables'), true); + if ($this->hasNode('variables')) { + $compiler->subcompile($this->getNode('variables'), true); } else { $compiler->raw('[]'); }