> On May 4, 2020, at 08:01, Matthew Brown <matthewmatt...@gmail.com> wrote:
> 
> This would break quite a lot of existing code, though PHP could add an
> explicit keyword like "inout" that catches this behaviour (see example in
> Hack: https://docs.hhvm.com/hack/functions/inout-parameters).
> 
> Today these issues can also be caught with static analysis:
> https://psalm.dev/r/1f670956ab


I think I’d be supportive of adding `inout` parameters in addition to existing 
support for references.

Cheers,
Ben

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to