On 21 August 2016 at 20:43, Marco Pivetta <ocram...@gmail.com> wrote: > > Sadly, it won't. Here's an example that shows the BC break in a more > explicit way: > > function foo(Iterator $i = null) {} > var_dump((string) (new ReflectionParameter('foo', 0))->getType()); > > This reports `Iterator` for PHP 7.0.x, `?\Iterator` for 7.1.x. > https://3v4l.org/tDkLj
Thanks. I missed that part - I thought this was just about ?types, not things that have default of null. cheers Dan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php