Skip to content

Commit 5dab62d

Browse files
committed
move isDisplayErrorsEnabled() to BaseExceptionHandler class for reuse
1 parent ededc90 commit 5dab62d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

system/Debug/BaseExceptionHandler.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,4 +268,16 @@ protected function render(Throwable $exception, int $statusCode, $viewFile = nul
268268
return ob_get_clean();
269269
})();
270270
}
271+
272+
/**
273+
* Whether the PHP display_errors setting is enabled.
274+
*/
275+
protected function isDisplayErrorsEnabled(): bool
276+
{
277+
return in_array(
278+
strtolower(ini_get('display_errors')),
279+
['1', 'true', 'on', 'yes'],
280+
true
281+
);
282+
}
271283
}

system/Debug/ExceptionHandler.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,4 @@ protected function determineView(
152152

153153
return $view;
154154
}
155-
156-
/**
157-
* Whether the PHP display_errors setting is enabled.
158-
*/
159-
private function isDisplayErrorsEnabled(): bool
160-
{
161-
return in_array(
162-
strtolower(ini_get('display_errors')),
163-
['1', 'true', 'on', 'yes'],
164-
true
165-
);
166-
}
167155
}

0 commit comments

Comments
 (0)