On 6 February 2019 13:46:32 GMT+00:00, Rowan Collins <rowan.coll...@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]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to