Re: [RFC] [VOTE] Typed properties v2
| From: | Claude Pache | Date: | Sun, 23 Sep 2018 18:41:22 +0000 |
| Subject: | Re: [RFC] [VOTE] Typed properties v2 | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-103237@lists.php.net to get a copy of this message | ||
>
> 3) Object properties may be type hinted and the class author has until the end
> of the constructor to make sure they're fulfilled, otherwise TypeError on the
> spot (what I'm proposing).
Just to be sure you don’t miss the herd that this elephant is concealing:
In addition, you *must* forbid unset() on those properties...
—Claude