Re: Re: [RFC] [VOTE] Typed properties v2

From: Date: Wed, 06 Feb 2019 14:09:19 +0000
Subject: Re: Re: [RFC] [VOTE] Typed properties v2
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-104246@lists.php.net to get a copy of this message
On 6 February 2019 13:46:32 GMT+00:00, Rowan Collins <rowan.collins@gmail.com> wrote: >it could be in the form of a new function like >property_is_initialized($object, $propertyName); this would be an >extension >of property_exists, that handles the edge case of "declared with a type >and >then explicitly unset". PS: I realise that it's also possible to accidentally leave a property in this state with a badly written constructor. I am drafting a proposal to make this much less likely, and contend that it should not be something users should be detecting, other than catching the resulting error. Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#104246) next »