From 134a92183f2f9e8869f41ddad692f77e1c8fa6bd Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 22 Oct 2022 15:18:26 +0200 Subject: [PATCH] Fix psalm --- tests/custom_bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/custom_bootstrap.php b/tests/custom_bootstrap.php index c392890e9..073116ba2 100644 --- a/tests/custom_bootstrap.php +++ b/tests/custom_bootstrap.php @@ -17,7 +17,7 @@ use Symfony\Component\Console\Output\NullOutput; use Symfony\Component\Filesystem\Filesystem; -$kernel = new AppKernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); +$kernel = new AppKernel($_SERVER['APP_ENV'] ?? 'test', (bool) ($_SERVER['APP_DEBUG'] ?? false)); $application = new Application($kernel); $application->setAutoExit(false);