Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is this still a discussion in 2023? I remember writing phpdoc @type hints in 2013, as that was the de facto way to have intelligent autocompletion in editors back then.


@type phpdocs are no longer required in almost all cases.


Since PHP’s types are monkey-patched on top, the type hints are indeed quite necessary for proper IDE hints, especially when it comes to arrays.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: