From 541692bbfe495bdd2d80aadc1e38285ed8b7c26d Mon Sep 17 00:00:00 2001 From: Timo Webler Date: Mon, 18 May 2020 13:19:27 +0200 Subject: [PATCH] Use "getInitialWorkingDirectory" instead of "getWorkingDirectory" Follow-up 8d24b61bef4839104db7f05c23400e598a8915e4 --- src/Composer/Command/ExecCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/ExecCommand.php b/src/Composer/Command/ExecCommand.php index d530def66..fba9e7e8a 100644 --- a/src/Composer/Command/ExecCommand.php +++ b/src/Composer/Command/ExecCommand.php @@ -99,7 +99,7 @@ EOT try { chdir($this->getApplication()->getInitialWorkingDirectory()); } catch (\Exception $e) { - throw new \RuntimeException('Could not switch back to working directory "'.$this->getApplication()->getWorkingDirectory().'"', 0, $e); + throw new \RuntimeException('Could not switch back to working directory "'.$this->getApplication()->getInitialWorkingDirectory().'"', 0, $e); } }