Back

With all the type hinting we get from php in 2024, do we need such (useless?) doc blocks anymore? Also would you add such a comment to this function, even though it's pretty clear what it does?

#PHP #Laravel

image

3

105

In response to @Sairahcaz2k

I use (and force to use in my company) the following logic: if it is type hintable, then no docblock.
If it is not type hintable, then use docblock.

For example, the stuff that PHP lacks:
image

83

  • No matching results...
  • Searching...

/ 1000