Hi, On Sun, Aug 9, 2020 at 8:34 PM Jordi Boggiano <j.boggi...@seld.be> wrote:
> Can't say I'm big on interpolation but I'd definitely expect this to > work because why not? A reason why not is because it will break backwards compatibility with existing (though admittedly unlikely) code which also can't be fixed by easy search and replace: $foo = "gnegg"; echo "$foo?->bar()" would be fine in PHP < 8 and would blow up with `Uncaught Error: Call to a member function bar() on string` with this change. I'm not saying this is a problem because code like this is unlikely to be written, but it *is* a BC break. Philip -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php