Skip to content

Commit 89f1450

Browse files
committed
Replace FILTER_VALIDATE_BOOLEAN by FILTER_VALIDATE_BOOL
1 parent 47d5519 commit 89f1450

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GenericRuntime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct(array $options = [])
6565
$debug = $options['debug'] ?? $_SERVER[$debugKey] ?? $_ENV[$debugKey] ?? true;
6666

6767
if (!\is_bool($debug)) {
68-
$debug = filter_var($debug, \FILTER_VALIDATE_BOOLEAN);
68+
$debug = filter_var($debug, \FILTER_VALIDATE_BOOL);
6969
}
7070

7171
if ($debug) {

Internal/BasicErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static function register(bool $debug): void
2424

2525
if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
2626
ini_set('display_errors', $debug);
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)