Skip to content

Commit 9387bde

Browse files
thaJeztahDan Cryer
authored and
Dan Cryer
committed
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 <[email protected]> Fixes dancryer#758
1 parent a233c4e commit 9387bde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/bootstrap.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@
3131
}
3232
}
3333

34+
$config = new b8\Config($conf);
35+
3436
if (file_exists($configFile)) {
35-
$config = new b8\Config($conf);
3637
$config->loadYaml($configFile);
3738
}
3839

0 commit comments

Comments
 (0)