error_handler.php

<?php

set_error_handler(
    function($errno, $errstr, $errfile, $errline) {
        $e = new \ErrorException($errstr, $errno, 0, $errfile, $errline);
        //\Lia\ExceptionCatcher::throw($e);
        throw $e;
    }
);

//set_exception_handler(
    //function($e){
        //\Lia\ExceptionCatcher::throw($e);
    //}
//);
//