Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
Rapzid
11y ago
0 comments
Share
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! :|
0 comments
default
newest
oldest
jiggy2011
11y ago
PHP5 has real type hinting in the language, so you don't need to write any more than you would in Java.
TazeTSchnitzel
11y ago
And soon it'll even have return typing, should that RFC pass.
Rapzid
OP
11y ago
phpdoc handles much more than just typing function parameters.
debaserab2
11y ago
By far the most common usage is parameters and return values. Even moreso than comments.
j
/
k
navigate · click thread line to collapse