diff --git a/configure.php b/configure.php index b9b4dfd..b76cb0c 100644 --- a/configure.php +++ b/configure.php @@ -7,8 +7,8 @@ $authorName = ask('Author name', $gitName); $gitEmail = run('git config user.email'); $authorEmail = ask('Author email', $gitEmail); -$usernameGuess = explode(':', run('git config remote.origin.url'))[1]; -if ($usernameGuess) { +$usernameGuess = explode(':', run('git config remote.origin.url'))[1] ?? ''; +if ($usernameGuess !== '') { $usernameGuess = dirname($usernameGuess); $usernameGuess = basename($usernameGuess); }