Skip to content

Commit

Permalink
fix(initcmd): add missing path arg in projectExists()
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Sep 20, 2018
1 parent a443885 commit 92230ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ protected function prepareProjectPath(): string
}

if (\is_dir($path)) {
$this->projectExists($io);
$this->projectExists($io, $path);
} else {
\mkdir($path, 0777, true);
}

return $path;
}

protected function projectExists(Interactor $io)
protected function projectExists(Interactor $io, string $path)
{
if (!$this->force && !$this->sync) {
throw new InvalidArgumentException(
Expand Down

0 comments on commit 92230ae

Please sign in to comment.