src/bootstrap.php
private static function uncertain() {
	ini_set('display_startup_errors', 0);
	ini_set('display_errors', 0);
	error_reporting(0);
	if (\alsvanzelf\fem\ENVIRONMENT == 'development') {
		ini_set('display_startup_errors', 1);
		ini_set('display_errors', 1);
		error_reporting(-1);
	}
	
	$error_handler = function($level, $message, $file, $line, $context) {
		throw new \ErrorException($message, $code=0, $level, $file, $line);
	};
	set_error_handler($error_handler);
}
private static function uncertain() {
	ini_set('display_startup_errors', 0);
	ini_set('display_errors', 0);
	error_reporting(0);
	if (\alsvanzelf\fem\ENVIRONMENT == 'development') {
		ini_set('display_startup_errors', 1);
		ini_set('display_errors', 1);
		error_reporting(-1);
	}
	
	$error_handler = function($level, $message, $file, $line, $context) {
		throw new \ErrorException($message, $code=0, $level, $file, $line);
	};
	set_error_handler($error_handler);
}
private static function uncertain ( ) { ini_set ( 'display_startup_errors' , 0 ) ; ini_set ( 'display_errors' , 0 ) ; error_reporting ( 0 ) ; if ( \ alsvanzelf \ fem \ ENVIRONMENT == 'development' ) { ini_set ( 'display_startup_errors' , 1 ) ; ini_set ( 'display_errors' , 1 ) ; error_reporting ( - 1 ) ; } $ error_handler = function ( $ level , $ message , $ file , $ line , $ context ) { throw new \ ErrorException ( $ message , $ code = 0 , $ level , $ file , $ line ) ; } ; set_error_handler ( $ error_handler ) ; }
error handling
know when to say what depending on environment
and passes errors to exceptions
error handling know when to say what depending on environment and passes errors to exceptions