On 09/08/2020 00:17, Sara Golemon wrote:
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

-Sara

Can't say I'm big on interpolation but I'd definitely expect this to work because why not?

I think if it can be reasonably fixed it probably would make sense for consistency and WTF-avoidance if anything.

Best,
Jordi

--
Jordi Boggiano
@seldaek - https://seld.be

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to