Classes/Fusion/Helper/NodeHelper.php
public function mergeProperties(array $properties, NodeInterface $node): array
    {
        $nodeProperties = $node->getProperties();
        if ($nodeProperties instanceof \Traversable) {
            $nodeProperties = iterator_to_array($nodeProperties);
        }
        return array_merge($properties, $nodeProperties);
    }
public function mergeProperties(array $properties, NodeInterface $node): array
    {
        $nodeProperties = $node->getProperties();
        if ($nodeProperties instanceof \Traversable) {
            $nodeProperties = iterator_to_array($nodeProperties);
        }
        return array_merge($properties, $nodeProperties);
    }
Merge properties of the specified $node to the given $properties (with precedence to node properties)

Note: This is required since NodeInterface::getProperties() does no longer return an array but an instance of PropertyCollectionInterface

@param array $properties
@param NodeInterface $node
@return array