attributeMirrorer = $attributeMirrorer; } public function enterNode(Node $node) : ?Node { if (!$node instanceof ArrayTypeNode) { return null; } if ($node instanceof SpacingAwareArrayTypeNode) { return null; } $spacingAwareArrayTypeNode = new SpacingAwareArrayTypeNode($node->type); $this->attributeMirrorer->mirror($node, $spacingAwareArrayTypeNode); return $spacingAwareArrayTypeNode; } }