public function registerShutdown() { error_reporting(error_reporting() & ~E_ERROR); register_shutdown_function(array($this, 'runShutdown')); }