Skip to content

Commit 439df43

Browse files
Make sure there is always a working directory
1 parent 751373d commit 439df43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class Configuration
9191
*/
9292
public function __construct($wd = null)
9393
{
94-
$this->workingDirectory = $wd;
94+
$this->workingDirectory = $wd === null ? getcwd() : $wd;
9595
}
9696

9797
/**

0 commit comments

Comments
 (0)