diff --git a/src/shell/packager.php b/src/shell/packager.php index 0e368f4..cf4da20 100644 --- a/src/shell/packager.php +++ b/src/shell/packager.php @@ -165,7 +165,7 @@ public function getAuthors() foreach ($this->getComposerJson()->authors as $author) { $authors["name"][$author->name] = $author->name; $authors["email"][$author->name] = $author->email; - $authors["user"][$author->name] = strstr(str_replace('.', '_', $author->email), '@', true); + $authors["user"][$author->name] = $author->user ? $author->user : strstr(str_replace('.', '_', $author->email), '@', true); } return $authors; }