From 584967704025c23f12165a259fd80a5ad7717509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morel=20Se=CC=81bastien?= Date: Thu, 8 Mar 2018 01:20:32 -0800 Subject: [PATCH] Fix TypeError argument when APP_DEBUG is set --- symfony/console/3.3/bin/console | 2 +- symfony/framework-bundle/3.3/public/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/symfony/console/3.3/bin/console b/symfony/console/3.3/bin/console index 14932be6..5187d027 100755 --- a/symfony/console/3.3/bin/console +++ b/symfony/console/3.3/bin/console @@ -24,7 +24,7 @@ if (!isset($_SERVER['APP_ENV'])) { $input = new ArgvInput(); $env = $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'dev', true); -$debug = ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)) && !$input->hasParameterOption('--no-debug', true); +$debug = (bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)) && !$input->hasParameterOption('--no-debug', true); if ($debug) { umask(0000); diff --git a/symfony/framework-bundle/3.3/public/index.php b/symfony/framework-bundle/3.3/public/index.php index ab41c26e..e173fb9d 100644 --- a/symfony/framework-bundle/3.3/public/index.php +++ b/symfony/framework-bundle/3.3/public/index.php @@ -16,7 +16,7 @@ if (!isset($_SERVER['APP_ENV'])) { } $env = $_SERVER['APP_ENV'] ?? 'dev'; -$debug = $_SERVER['APP_DEBUG'] ?? ('prod' !== $env); +$debug = (bool) $_SERVER['APP_DEBUG'] ?? ('prod' !== $env); if ($debug) { umask(0000);