1--TEST-- 2Verify type rendering in type error for implicitly nullable intersection types 3--FILE-- 4<?php 5 6function foo(X&Y $foo = null) { 7 var_dump($foo); 8} 9 10try { 11 foo(5); 12} catch (\TypeError $e) { 13 echo $e->getMessage(), \PHP_EOL; 14} 15 16?> 17--EXPECTF-- 18foo(): Argument #1 ($foo) must be of type (X&Y)|null, int given, called in %s on line %d 19