Hacker News new | ask | show | jobs
by jiggy2011 4254 days ago
PHP5 has real type hinting in the language, so you don't need to write any more than you would in Java.
2 comments

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.