diff --git a/system/Debug/BaseExceptionHandler.php b/system/Debug/BaseExceptionHandler.php index 4305265d2d2c..cc2200b7a440 100644 --- a/system/Debug/BaseExceptionHandler.php +++ b/system/Debug/BaseExceptionHandler.php @@ -268,4 +268,16 @@ protected function render(Throwable $exception, int $statusCode, $viewFile = nul return ob_get_clean(); })(); } + + /** + * Whether the PHP display_errors setting is enabled. + */ + protected function isDisplayErrorsEnabled(): bool + { + return in_array( + strtolower(ini_get('display_errors')), + ['1', 'true', 'on', 'yes'], + true + ); + } } diff --git a/system/Debug/ExceptionHandler.php b/system/Debug/ExceptionHandler.php index 8d495402a23d..415226108f62 100644 --- a/system/Debug/ExceptionHandler.php +++ b/system/Debug/ExceptionHandler.php @@ -152,16 +152,4 @@ protected function determineView( return $view; } - - /** - * Whether the PHP display_errors setting is enabled. - */ - private function isDisplayErrorsEnabled(): bool - { - return in_array( - strtolower(ini_get('display_errors')), - ['1', 'true', 'on', 'yes'], - true - ); - } }