Skip to content

Commit b2dfb0a

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #377
2 parents 37a4bc0 + 5849677 commit b2dfb0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

symfony/console/3.3/bin/console

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (!isset($_SERVER['APP_ENV'])) {
2424

2525
$input = new ArgvInput();
2626
$env = $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'dev', true);
27-
$debug = ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)) && !$input->hasParameterOption('--no-debug', true);
27+
$debug = (bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)) && !$input->hasParameterOption('--no-debug', true);
2828

2929
if ($debug) {
3030
umask(0000);

symfony/framework-bundle/3.3/public/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717

1818
$env = $_SERVER['APP_ENV'] ?? 'dev';
19-
$debug = $_SERVER['APP_DEBUG'] ?? ('prod' !== $env);
19+
$debug = (bool) $_SERVER['APP_DEBUG'] ?? ('prod' !== $env);
2020

2121
if ($debug) {
2222
umask(0000);

0 commit comments

Comments
 (0)