Skip to content

Commit 92230ae

Browse files
committed
fix(initcmd): add missing path arg in projectExists()
1 parent a443885 commit 92230ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/InitCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@ protected function prepareProjectPath(): string
136136
}
137137

138138
if (\is_dir($path)) {
139-
$this->projectExists($io);
139+
$this->projectExists($io, $path);
140140
} else {
141141
\mkdir($path, 0777, true);
142142
}
143143

144144
return $path;
145145
}
146146

147-
protected function projectExists(Interactor $io)
147+
protected function projectExists(Interactor $io, string $path)
148148
{
149149
if (!$this->force && !$this->sync) {
150150
throw new InvalidArgumentException(

0 commit comments

Comments
 (0)