I like and make use of interpolation, but I can't think of a use case for
this. Is there any valid use case that would benefit from this fix
regardless of personal preference? In other words, where would one use
string interpolation with an empty string being a valid case?

On Sun, Aug 9, 2020, 20:34 Jordi Boggiano <j.boggi...@seld.be> wrote:

> 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