1--TEST-- 2Intersection types can be implicitly nullable 3--FILE-- 4<?php 5 6function foo(X&Y $foo = null) { 7 var_dump($foo); 8} 9 10foo(null); 11 12?> 13--EXPECTF-- 14Deprecated: foo(): Implicitly marking parameter $foo as nullable is deprecated, the explicit nullable type must be used instead in %s on line %d 15NULL 16