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