Re: [PHP-DEV] Unset static properties

2019-04-10 Thread Benjamin Morel
> We could add support for this, but as the general consensus is that we'd much rather remove support for unsetting declared object properties (if we could cover the lazy loading use case in a different way), I don't think it makes sense to allow this. Ok, thanks. Just wanted to double check. Not

Re: [PHP-DEV] Unset static properties

2019-04-10 Thread Nikita Popov
On Wed, Apr 10, 2019 at 2:20 PM Benjamin Morel wrote: > Hi internals, > > I came across this when playing with static properties: > > class A { > public static int $x; > } > > // This throws, as expected: > // Error: Typed static property A::$x must not be accessed before