On Fri, Jan 4, 2013 at 4:34 PM, Levi Morrison <le...@php.net> wrote: >>We should also consider how an author would allow type-hinted properties to >>accept NULL as a new value, in both proposals. > > public $foo { > get; > set(Foo $value = NULL) { $this->foo = $value; } > } > > Would work for traditional type-hints.
I just realized that `unset` would actually have a use here. Rather than setting something to `null` you would `unset` it. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php