Re: [RFC][Vote] Typed Properties

From: Date: Wed, 25 May 2016 15:57:53 +0000
Subject: Re: [RFC][Vote] Typed Properties
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-93511@lists.php.net to get a copy of this message
This is a cool idea and continuation of the typing systems so I've been sort of skimming this thread as its been discussed and this example and the associated errors caught my attention. > class C { > public $a; > public int $b; > public ?int $c; > } > $obj = new C; > Excuse me if this has been addressed but to clarify, using that snippet, would this also throw an error? var_dump($obj); If so, I see a lot of cursing in my future if this goes in. Like "what's the bad data on this object that's getting in here? aww #$%^ that deprecated property wasn't set so the whole thing blew up!" sort of cursing. :(

« previous php.internals (#93511) next »