Hi internals > Do we expect this to work? > > $foo = new stdClass; > $foo->bar = "Hello"; > echo "$foo?->bar world\n"; > > Because at the moment it doesn't: https://3v4l.org/nLv3l
The patch can be found here: https://github.com/php/php-src/pull/5966 It adds ~5 lines to the lexer. As mentioned, there is a BC break although it is probably very small (I could find no code that breaks on grep.app). Because this BC break was never mentioned in the RFC I'm leaning towards not merging this patch but I am happy either way. Let's hear from a few more people what they think until we decide how to move forward. Ilija -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php