Re: Re: 8.1 / Exception / Property Type / Backwards compatbility
| From: | Ben Ramsey | Date: | Thu, 26 Aug 2021 18:34:39 +0000 |
| Subject: | Re: Re: 8.1 / Exception / Property Type / Backwards compatbility | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-115864@lists.php.net to get a copy of this message | ||
Nikita Popov wrote on 8/26/21 09:57:
> Right. I at least do not plan to address this issue. If you take a
> protected property and publicly re-export it, then any compatibility issues
> are on you.
This does not appear to affect only cases where one is re-exporting a
protected property as public.
Exception protected properties without type hints:
* PHP <= 8.0 - https://3v4l.org/GWmrk
* PHP 8.1 - https://3v4l.org/GWmrk/rfc
Exception protected properties with type hints:
* PHP <= 8.0 - https://3v4l.org/UX1Pa
* PHP 8.1 - https://3v4l.org/UX1Pa/rfc
Cheers,
Ben
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc