Adjust error_reporting to allow deprecation messages for 3.0