Use null instead of void. PHP functions without a return statement return null, not void.