Hey Mark,

Asking here as well, so that others are aware: is
`unset($this->aPropertyThatWasNotInitializedBefore)` still working with
this patch?

Also, are the semantics around `__get`, `__set` and `__isset` the same as
with typed properties?

In the RFC, you have `unset($foo->c)` as disallowed: the property isn't
declared nor initialized though. I'd expect this to fail only after first
initialization?

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On Wed, Feb 19, 2020 at 6:06 PM Máté Kocsis <kocsismat...@gmail.com> wrote:

> Hi Internals,
>
> I'd like to move my RFC forward to the discussion phase:
> https://wiki.php.net/rfc/write_once_properties
>
> In short, I propose to add support for a new property modifier that would
> allow properties to be initialized, but not modified afterwards.
>
> Cheers,
> Máté Kocsis
>

Reply via email to