Sometimes, when a function name and a variable name to which the return of the function is stored are same, the error is shown. Just happened to me.