mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
Merge pull request #3319 from desyncr/bugfix/missing-default-author-value-validation
Fix missing validation on default value for author input
This commit is contained in:
commit
4bdd7adc55
1 changed files with 1 additions and 4 deletions
|
@ -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']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue