The return type could not be reliably inferred; please add a @return annotation.
Our type inference engine in quite powerful, but sometimes the code does not
provide enough clues to go by. In these cases we request you to add a @return
annotation as described here.
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.