|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-05-05 19:03 UTC] requinix@php.net
-Status: Open
+Status: Wont fix
-Package: Feature/Change Request
+Package: *General Issues
[2018-05-05 19:03 UTC] requinix@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Feb 07 20:00:01 2026 UTC |
Description: ------------ PHP5 allows to type hint function parameters. I like the possibility to have the choice, between type hinting, or not. But it would be so nice to have the same optional behaviour with class properties... Is it logical to allow type hinting for parameters, and not for properties ??? Expected result: ---------------- Class B { (...) } Class A { public B $b (...) }