diff --git a/Internal/BasicErrorHandler.php b/Internal/BasicErrorHandler.php index a3f0da7..3c97cba 100644 --- a/Internal/BasicErrorHandler.php +++ b/Internal/BasicErrorHandler.php @@ -24,12 +24,12 @@ public static function register(bool $debug): void if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) { ini_set('display_errors', $debug); - } elseif (!filter_var(ini_get('log_errors'), \FILTER_VALIDATE_BOOLEAN) || ini_get('error_log')) { + } elseif (!filter_var(\ini_get('log_errors'), \FILTER_VALIDATE_BOOLEAN) || \ini_get('error_log')) { // CLI - display errors only if they're not already logged to STDERR ini_set('display_errors', 1); } - if (0 <= ini_get('zend.assertions')) { + if (0 <= \ini_get('zend.assertions')) { ini_set('zend.assertions', 1); ini_set('assert.active', $debug); ini_set('assert.warning', 0);