1--TEST-- 2object type cannot take part in an intersection type 3--FILE-- 4<?php 5 6function foo(): object&Iterator {} 7 8?> 9--EXPECTF-- 10Fatal error: Type object cannot be part of an intersection type in %s on line %d 11