Yes, but the __toString API is used for codegen, and current code generators don't expect a `?` to appear there.
How many engineers and failing unit tests does it take to explain a BC break? Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Sun, Aug 21, 2016 at 6:00 PM, Levi Morrison <le...@php.net> wrote: > This is the ultimate point: if we don't prepend the question mark it will >>> break code. >>> >> >> This is the impedence here: `ReflectionType` is a *REFLECTION*, not a >> code generator. Don't think of `ReflectionType#__toString()` as a way to >> generate code: it is merely a string representation of the reflectoion. >> > > This is the last I have to say on anything: > > You just proved the point. It's a *reflection* of what was written. If > it's a nullable type then it needs a nullable reflection in the toString. >