Back

hey all, i just started using larastan , for better code analysis, but sometime error like this make me confuse , what to do next.
should i configure php stan to ignore these type of error suggestion or should i configure pint to remove return types, if the function has empty body ?

image

5

276

In response to @JaiveerChavda

if you're not going to implement it, you can just remove it. and if you must have them, just return the default value. If you can go for the former.

1

112

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

/ 1000

yeah, removal of unused function is good approach.

108