Peridot\Core\Test::restoreErrorHandler PHP Method

restoreErrorHandler() protected method

Restore the previous error handler
protected restoreErrorHandler ( callable | null $handler )
$handler callable | null
    protected function restoreErrorHandler($handler)
    {
        if ($handler) {
            set_error_handler($handler);
        } else {
            // unfortunately, we can't pass null until PHP 5.5
            set_error_handler(function () {
                return false;
            });
        }
    }