Skip to content

Commit 60f4f1d

Browse files
author
Greg Bowler
committed
Reorder previousConfig loading
1 parent 177e823 commit 60f4f1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ConfigFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ public static function createForProject(
1919
self::FILE_OVERRIDE_ORDER
2020
);
2121

22+
$previousConfig = null;
23+
2224
if(!is_null($defaultConfigPathName)) {
2325
$previousConfig = ConfigFactory::createFromPathName(
2426
$defaultConfigPathName
2527
);
2628
}
2729

28-
$previousConfig = null;
29-
3030
foreach($order as $file) {
3131
$fileName = "config";
3232
$fileName .= ".";

0 commit comments

Comments
 (0)