public function register()
 {
     if (function_exists('ini_set')) {
         ini_set('display_errors', 0);
     }
     $run = new Run();
     $handler = new ErrorHandler();
     $json_handler = new JsonErrorHandler();
     $cli_handler = new PlainTextHandler();
     $cli_handler->onlyForCommandLine(true);
     $run->pushHandler($handler);
     $run->pushHandler($json_handler);
     $run->pushHandler($cli_handler);
     $run->register();
 }
 public function register()
 {
     if (function_exists('ini_set')) {
         ini_set('display_errors', 0);
     }
     $run = new Run();
     if (interface_exists('\\Throwable')) {
         $run = new PHP7CompatibleRun($run);
     }
     $handler = new ErrorHandler();
     $run->pushHandler($handler);
     $json_handler = new JsonErrorHandler();
     $cli_handler = new PlainTextHandler();
     $cli_handler->onlyForCommandLine(true);
     $cli_handler->addTraceFunctionArgsToOutput(true);
     $cli_handler->addTraceToOutput(true);
     $run->pushHandler($json_handler);
     $run->pushHandler($cli_handler);
     $run->register();
 }