Skip to content

Commit 5d55dfc

Browse files
committed
cast debug to boolean when creating kernel
1 parent a1147a4 commit 5d55dfc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

symfony/console/3.3/bin/console

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ if ($_SERVER['APP_DEBUG']) {
3535
}
3636
}
3737

38-
$kernel = new Kernel($_SERVER['APP_ENV'], $_SERVER['APP_DEBUG']);
38+
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
3939
$application = new Application($kernel);
4040
$application->run($input);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Request::setTrustedHosts([$trustedHosts]);
2121
}
2222

23-
$kernel = new Kernel($_SERVER['APP_ENV'], $_SERVER['APP_DEBUG']);
23+
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
2424
$request = Request::createFromGlobals();
2525
$response = $kernel->handle($request);
2626
$response->send();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Request::setTrustedHosts([$trustedHosts]);
2121
}
2222

23-
$kernel = new Kernel($_SERVER['APP_ENV'], $_SERVER['APP_DEBUG']);
23+
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
2424
$request = Request::createFromGlobals();
2525
$response = $kernel->handle($request);
2626
$response->send();

0 commit comments

Comments
 (0)