Hacker News new | ask | show | jobs
by Rapzid 4257 days ago
Which becomes ironic because you end up writing way more text into the file for phpdoc then you would have if it were a static language to begin with; and you end up treating the variables as static type anyway! :|
1 comments

PHP5 has real type hinting in the language, so you don't need to write any more than you would in Java.
And soon it'll even have return typing, should that RFC pass.
phpdoc handles much more than just typing function parameters.
By far the most common usage is parameters and return values. Even moreso than comments.