error_handler.php

<?php

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

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