Re: [RFC][Vote] Typed Properties
| From: | Niklas Keller | Date: | Wed, 25 May 2016 19:13:00 +0000 |
| Subject: | Re: [RFC][Vote] Typed Properties | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-93525@lists.php.net to get a copy of this message | ||
2016-05-25 20:39 GMT+02:00 Fleshgrinder <php@fleshgrinder.com>:
> In my opinion it should simply vanish along with its definition. I mean,
>
Usually, yes. But suddenly
private Type $foo isn't reliable anymore if
unset is supported for typed properties, because the following would just
remove all type info / enforcement:
$backup = $this->foo;
unset($this->foo);
$this->foo = $backup;
Unset can reset it to the default value, but wiping type information is
probably
not an option here.
Regards, Niklas