Skip to content

Commit c7e39e0

Browse files
committed
Fix incorrect assert, argument may be empty.
1 parent c292b8e commit c7e39e0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Cli/Command/Project/ProjectCommandBase.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
3636
exit(1);
3737
}
3838
} else {
39-
$projectName = $this->stdIn->getArgument('project');
40-
assert(is_string($projectName));
39+
$projectName = $this->stdIn->getArgument('project') ?: '';
4140
$this->projectName = $projectName;
4241
}
4342

0 commit comments

Comments
 (0)