diff --git a/src/Composer/Console/Application.php b/src/Composer/Console/Application.php index 76629d9c4..9d3557e27 100644 --- a/src/Composer/Console/Application.php +++ b/src/Composer/Console/Application.php @@ -309,8 +309,9 @@ class Application extends BaseApplication $result = parent::doRun($input, $output); + // chdir back to $oldWorkingDir if set if (isset($oldWorkingDir)) { - chdir($oldWorkingDir); + Silencer::call('chdir', $oldWorkingDir); } if (isset($startTime)) {