chris-kruining/utilities

View on GitHub
bootstrap.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

require_once __DIR__ . '/vendor/autoload.php';

error_reporting(E_ALL);

set_error_handler(function($errno, $errstr, $errfile, $errline){
    echo json_encode([
        'error' => $errno,
        'message' => $errstr,
        'file' => $errfile,
        'line' => $errline
    ]);
});