diff --git a/src/Composer/Command/InitCommand.php b/src/Composer/Command/InitCommand.php index ae8bc6c9b..a463c31de 100644 --- a/src/Composer/Command/InitCommand.php +++ b/src/Composer/Command/InitCommand.php @@ -342,7 +342,7 @@ EOT return; } $value = $value ?: $author; - $author = $this->parseAuthorString($value); + $author = $this->parseAuthorString($value ?? ''); if ($author['email'] === null) { return $author['name'];