Skip to content

Definition: Warnings or more critical errors have to be thrown as exceptions #68

@tristanlins

Description

@tristanlins
function exception_error_handler($errno, $errstr, $errfile, $errline ) {
    throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
}
set_error_handler("exception_error_handler", E_ALL ^ E_NOTICE ^ E_USER_NOTICE);

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions