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