From 1e48fa278ab80f67384bb8606f3fd11fbaa08a87 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 24 Jan 2015 14:57:37 +0100 Subject: [PATCH] Fix undefined variable '$config' in /Tests/bootstrap.php When no config-file was found, no instance of Config was created as well, resulting in: PHP Notice: Undefined variable: config in /Tests/bootstrap.php on line 41 This changes /Tests/bootstrap.php to always create an instance of b8\Config(), even if no file was found. Signed-off-by: Sebastiaan van Stijn Fixes #758 --- Tests/bootstrap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/bootstrap.php b/Tests/bootstrap.php index 1d2f2ab4..63bf1406 100644 --- a/Tests/bootstrap.php +++ b/Tests/bootstrap.php @@ -31,8 +31,9 @@ if (!file_exists($configFile)) { } } +$config = new b8\Config($conf); + if (file_exists($configFile)) { - $config = new b8\Config($conf); $config->loadYaml($configFile); }