12/05
2017
Wallogit.com
2017 © Pedro Peláez
The NiletPHP error handling component.
Registers custom error handler, which throws \Error when PHP emits E_WARNING or E_ERROR., (*1)
PHP >= 7.0, (*2)
Composer, (*3)
{
"require": {
"niletphp/error-handling": ">=v1.0"
}
}
use Nilet\Components\ErrorHandling\ErrorHandler; $eh = new ErrorHandler(); // Registering the custom error handler $eh->handleErrors(); // Restore the previous event handler $eh->restoreErrorHandler();