Declare all return types except void

I did a quick test, I haven't encountered any problem.