Re: [VOTE] Undefined Property Error Promotion
| From: | Mark Randall | Date: | Fri, 22 Apr 2022 20:47:52 +0000 |
| Subject: | Re: [VOTE] Undefined Property Error Promotion | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-117574@lists.php.net to get a copy of this message | ||
On 22/04/2022 21:30, Rowan Tommins wrote:
Do you not have even a little bit of hope that we could make that less confusing, since we're breaking everyone's old code anyway?I seem to remember we had a discussion years ago about deleting unset on properties, but it was being used for a very popular proxy manager to force them to be routed to __get. The rule that anything typed must be initialized, nullable or not, is clearish enough. You could special case nullable, but then it's an extra rule to learn beyond "typed = needs to be initialized".