uctor must be X
type, ergo the post-ctor values of the props will be of type X. I can see
the argument that it suggests real (permanent) typing where none exists
though.
Thanks,
Sean Cannella | Facebook Eng
If you are smart and persistent, you may find the truth. It is not always
a reward.
tor
could parse __construct's Doc Comment. This is arguably more work for the
IDE and/or PhpDoc generator, but the data is still there.
Thanks,
Sean Cannella | Facebook Eng
If you are smart and persistent, you may find the truth. It is not always
a reward.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
et the PHP community's opinion on this feature. See the draft RFC
and referenced implementation below:
https://wiki.php.net/rfc/constructor-promotion
What do you all think?
Thanks,
Sean Cannella | Facebook Eng
If you are smart and persistent, you may find the truth. It is not always a
reward.