From 06b48dfdc6af23361f657e281fb5faa3bb06bdf2 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Thu, 8 Jun 2023 08:07:55 -0700 Subject: [PATCH] CLI-1082: [pull:db] typed property dir must not be accessed before initialization (#1531) --- src/Command/Pull/PullCommandBase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Command/Pull/PullCommandBase.php b/src/Command/Pull/PullCommandBase.php index ac18d41d4..ee1e86629 100644 --- a/src/Command/Pull/PullCommandBase.php +++ b/src/Command/Pull/PullCommandBase.php @@ -109,6 +109,7 @@ protected function pullCode(InputInterface $input, OutputInterface $output): voi * @param bool $noImport Skip import. */ protected function pullDatabase(InputInterface $input, OutputInterface $output, bool $onDemand = FALSE, bool $noImport = FALSE, bool $multipleDbs = FALSE): void { + $this->setDirAndRequireProjectCwd($input); if (!$noImport) { // Verify database connection. $this->connectToLocalDatabase($this->getLocalDbHost(), $this->getLocalDbUser(), $this->getLocalDbName(), $this->getLocalDbPassword(), $this->getOutputCallback($output, $this->checklist));