Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

Commit a6f7b78

Browse files
committed
Use constant instead of function call.
1 parent 9233292 commit a6f7b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Debug.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function enable($errorReportingLevel = null, $displayErrors = true
4444
error_reporting(-1);
4545

4646
ErrorHandler::register($errorReportingLevel, $displayErrors);
47-
if ('cli' !== php_sapi_name()) {
47+
if ('cli' !== PHP_SAPI) {
4848
ExceptionHandler::register();
4949
// CLI - display errors only if they're not already logged to STDERR
5050
} elseif ($displayErrors && (!ini_get('log_errors') || ini_get('error_log'))) {

0 commit comments

Comments
 (0)