On Mon, May 12, 2025 at 8:00 PM Larry Garfield <la...@garfieldtech.com> wrote: > > I hereby open the vote on the Pipe operator RFC: > > https://wiki.php.net/rfc/pipe-operator-v3 > > The vote will run until 26 May.
Hey, Larry, quick check: > Supporting pass-by-ref parameters in simple cases is quite easy, and > a naive implementation would support it. However, passing a value > from a compound value (an object property or array element) by > reference does not work, and throws an “Argument could not be passed > by reference” error. In practice, it is easier to forbid pass-by-ref > parameters in pipe than to allow them. Is this a restriction that can be lifted in a future version? I agree that it's unlikely to be useful, but if the `$temp =` chain version supports it, then so too I would expect a pipeline to be able to handle it.