1--TEST-- 2Intersection with child class 3--FILE-- 4<?php 5 6interface X {} 7class A {} 8class B extends A {} 9 10function test(): (A&X)|(B&X) {} 11 12?> 13===DONE=== 14--EXPECT-- 15===DONE=== 16