Skip to content

Commit 9f9ad92

Browse files
authored
Update configure.php
Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in configure.php on line 177
1 parent 4928146 commit 9f9ad92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function searchCommitsForGitHubUsername(): string
174174
$authorName = strtolower(trim(shell_exec('git config user.name')));
175175

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

0 commit comments

Comments
 (0)