1
0
Fork 0

Suppress error when chdir($oldWorkingDir); unsuccessful

resolves #9649
pull/9651/head
Ben Beckford 2021-01-26 20:48:19 +00:00
parent 125f8a3319
commit 8eaae9f50a
1 changed files with 4 additions and 1 deletions

View File

@ -309,8 +309,11 @@ class Application extends BaseApplication
$result = parent::doRun($input, $output);
// chdir back to $oldWorkingDir if set
if (isset($oldWorkingDir)) {
chdir($oldWorkingDir);
Silencer::call(function () use ($oldWorkingDir) {
chdir($oldWorkingDir);
});
}
if (isset($startTime)) {