Just do @return string, there is no such thing as $remoteIp in a return statement.