Skip to content

Commit

Permalink
Merge pull request #323 from keizah7/fix-deprecated-message
Browse files Browse the repository at this point in the history
fix: Deprecated message
  • Loading branch information
freekmurze committed Feb 12, 2024
2 parents 4928146 + 9f9ad92 commit 8aed67e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function searchCommitsForGitHubUsername(): string
$authorName = strtolower(trim(shell_exec('git config user.name')));

$committersRaw = shell_exec("git log --author='@users.noreply.github.com' --pretty='%an:%ae' --reverse");
$committersLines = explode("\n", $committersRaw);
$committersLines = explode("\n", $committersRaw ?? '');
$committers = array_filter(array_map(function ($line) use ($authorName) {
$line = trim($line);
[$name, $email] = explode(':', $line) + [null, null];
Expand Down

0 comments on commit 8aed67e

Please sign in to comment.