Skip to content

Commit 3d45a72

Browse files
committed
Replace FILTER_VALIDATE_BOOLEAN by FILTER_VALIDATE_BOOL
1 parent a777c0e commit 3d45a72

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
@@ -24,7 +24,7 @@ public static function enable(): ErrorHandler
2424

2525
if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
2626
ini_set('display_errors', 0);
27-
} elseif (!filter_var(\ini_get('log_errors'), \FILTER_VALIDATE_BOOLEAN) || \ini_get('error_log')) {
27+
} elseif (!filter_var(\ini_get('log_errors'), \FILTER_VALIDATE_BOOL) || \ini_get('error_log')) {
2828
// CLI - display errors only if they're not already logged to STDERR
2929
ini_set('display_errors', 1);
3030
}

0 commit comments

Comments
 (0)