Skip to content

Commit ddc27cf

Browse files
committed
FIX Problem with str_replace with subject replacement
1 parent 24d78aa commit ddc27cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/Markdown/GeneratorCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private function treatFields(InputInterface $input, OutputInterface $output): ar
128128
private function promptName(SymfonyStyle $io): string
129129
{
130130
$packageName = explode('/', $this->composerData['name']);
131-
$name = $io->ask('Project Name', str_replace($packageName[1], '-', ' '));
131+
$name = $io->ask('Project Name', str_replace('-', ' ', $packageName[1]));
132132

133133
if (!$this->isFieldFilled($name)) {
134134
throw new EmptyFieldException('Mention a name for your project 😺');

0 commit comments

Comments
 (0)