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

274

In response to @JaiveerChavda

The function definition needs to return what you define as the return type. If you want to return nothing set the return type to 'void'.

58

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

/ 1000