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