valkyrjaio/application

View on GitHub
app/Exceptions/ExceptionHandler.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace App\Exceptions;

use Valkyrja\Exception\ExceptionHandler as ValkyrjaExceptionHandler;

/**
 * Class ExceptionHandler.
 */
class ExceptionHandler extends ValkyrjaExceptionHandler
{
    /**
     * Enable debug mode.
     *
     * @param int  $errorReportingLevel [optional] The error reporting level
     * @param bool $displayErrors       [optional] Whether to display errors
     *
     * @return void
     */
    public static function enable(int $errorReportingLevel = E_ALL, bool $displayErrors = false): void
    {
        parent::enable($errorReportingLevel, $displayErrors);
    }
}