Skip to content

Commit

Permalink
Remove camel cased variables node
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgiopogliani committed Apr 8, 2022
1 parent a9b1f5f commit 67684d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Node/ComponentNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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('[]');
}
Expand Down

0 comments on commit 67684d4

Please sign in to comment.