Re: [RFC] [Discussion] Friends
| From: | Daniel Scherzer | Date: | Thu, 14 May 2026 19:29:27 +0000 |
| Subject: | Re: [RFC] [Discussion] Friends | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-130882@lists.php.net to get a copy of this message | ||
On Sun, May 10, 2026 at 9:28 AM Daniel Scherzer <daniel.e.scherzer@gmail.com>
wrote:
> Hi internals,
>
> I'd like to start the discussion for a new RFC about adding friendship in
> PHP. This is a follow-up to a pre-RFC discussion thread
> https://externals.io/message/130710.
>
> * RFC: https://wiki.php.net/rfc/friends
> * Implementation: https://github.com/php/php-src/pull/21937
>
> Thanks,
> -Daniel
>
After feedback from Rob and Larry, I'm planning to switch friendship to
just allow access to protected properties/methods/constants, unless anyone
has any other suggestions for avoiding the LSP issues.
-Daniel