[php-src] Issue #8179: Typed properties: the unset() command make property undeclared instead of uninitialized
| From: | bwoebi | Date: | Mon, 07 Mar 2022 11:21:59 +0000 |
| Subject: | [php-src] Issue #8179: Typed properties: the unset() command make property undeclared instead of uninitialized | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240247@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8179
Comment Author: bwoebi
(your example should use a public property, otherwise it fails for unrelated reasons)
Yes, the behaviour described in the RFC has been changed. Please refer to https://bugs.php.net/bug.php?id=78226 for the
background of that change.
I cannot find any documentation of unset() behaviour in the docs. I propose we convert this to a
doc-bug, so that these behaviours can be documented, because they are, in fact, being relied on and
intentional part of the language.