attributeMirrorer = $attributeMirrorer; } public function enterNode(Node $node) : ?Node { if (!$node instanceof IntersectionTypeNode) { return null; } if ($node instanceof BracketsAwareIntersectionTypeNode) { return null; } $bracketsAwareIntersectionTypeNode = new BracketsAwareIntersectionTypeNode($node->types); $this->attributeMirrorer->mirror($node, $bracketsAwareIntersectionTypeNode); return $bracketsAwareIntersectionTypeNode; } }