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 ?
Back
•
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.
•
In response to @treggats
yeah, removal of unused function is good approach.