Skip to content

Commit

Permalink
Use the new Nodes class for a better test
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Sep 26, 2024
1 parent 432c699 commit da880a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Node/SetNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(bool $capture, Node $names, Node $values, int $linen
$safe = false;
if ($capture) {
$safe = true;
if (Node::class === get_class($values) && !count($values)) {
if ($values instanceof Nodes && !count($values)) {
$values = new ConstantExpression('', $values->getTemplateLine());
$capture = false;
} elseif ($values instanceof TextNode) {
Expand Down

0 comments on commit da880a9

Please sign in to comment.