Skip to content

Commit

Permalink
Use ValueNode in the SimpleArray importer.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Dec 16, 2019
1 parent 9eecefa commit bcf664b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Importer/SimpleArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use drupol\phptree\Node\Node;
use drupol\phptree\Node\NodeInterface;
use drupol\phptree\Node\ValueNode;

/**
* Class SimpleArray.
Expand Down Expand Up @@ -54,6 +55,6 @@ protected function arrayToTree(array $data): NodeInterface
*/
protected function createNode($data): NodeInterface
{
return new Node();
return new ValueNode($data);
}
}

0 comments on commit bcf664b

Please sign in to comment.