diff --git a/src/Composer/Command/InitCommand.php b/src/Composer/Command/InitCommand.php index 8aa734630..f92615f7b 100644 --- a/src/Composer/Command/InitCommand.php +++ b/src/Composer/Command/InitCommand.php @@ -228,10 +228,7 @@ EOT $output, $dialog->getQuestion('Author', $author), function ($value) use ($self, $author) { - if (null === $value) { - return $author; - } - + $value = $value ?: $author; $author = $self->parseAuthorString($value); return sprintf('%s <%s>', $author['name'], $author['email']);