1--TEST-- 2Replacing int type with intersection type 3--FILE-- 4<?php 5 6interface X {} 7interface Y {} 8 9class Test { 10 function method(): int {} 11} 12class Test2 extends Test { 13 function method(): X&Y {} 14} 15 16?> 17--EXPECTF-- 18Fatal error: Declaration of Test2::method(): X&Y must be compatible with Test::method(): int in %s on line %d 19