11 points danogentili 1 day ago 3 comments

origini 24 minutes ago | parent

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?

monster_truck 22 minutes ago | parent

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

Y-bar 14 minutes ago | parent

TFA even shows examples of native return types. How could you not see that?