Hacker News new | past | comments | ask | show | jobs | submit
Ah boy o boy, PHP was the first lanuage I teached myself but man it still needs PHPDoc comment on return types?

Come on PHP has so many shitty things, but even something basic like this is still not in the lanuage itself?

loading story #50425443
It's had return type declarations since 7. There's even intersection and literal types now. You could have typed this into google and it would have told you
loading story #50423803
loading story #50423735
TFA even shows examples of native return types. How could you not see that?
loading story #50423815
"Taught", not "teached".
"Cool! A PHP article on HN, let's rehash some of my comments that got lots of upvotes 11 years ago!"
loading story #50423823