File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ function ($key, $data) {
57
57
$ nodes [] = \sprintf (
58
58
' "%s" %s ' ,
59
59
$ this ->getHash ($ child ),
60
- $ this ->getNodeAttributes ($ child )
60
+ $ this ->attributesArrayToText ( $ this -> getNodeAttributes ($ child) )
61
61
);
62
62
}
63
63
@@ -212,10 +212,10 @@ protected function getHash(NodeInterface $node): string
212
212
* @param \drupol\phptree\Node\NodeInterface $node
213
213
* The node interface.
214
214
*
215
- * @return string
216
- * The attributes as a string .
215
+ * @return array
216
+ * The attributes as an array .
217
217
*/
218
- protected function getNodeAttributes (NodeInterface $ node ): string
218
+ protected function getNodeAttributes (NodeInterface $ node ): array
219
219
{
220
220
$ attributes = [];
221
221
@@ -229,6 +229,6 @@ protected function getNodeAttributes(NodeInterface $node): string
229
229
}
230
230
}
231
231
232
- return $ this -> attributesArrayToText ( $ attributes) ;
232
+ return $ attributes ;
233
233
}
234
234
}
You can’t perform that action at this time.
0 commit comments