Skip to content

Commit 7e67d58

Browse files
committed
build(robo): fix php warning in changelog builder
1 parent ad670ef commit 7e67d58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RoboFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ public static function buildLogLine($commit, $remote) {
900900
. " ([$hash]($remote/commit/$hash))";
901901

902902
// Search for closed issues
903-
$body = explode(PHP_EOL, $commit->body);
903+
$body = explode(PHP_EOL, $commit->body ?? '');
904904
$pattern = '/^((close|closes|fix|fixed) #(?P<id>\\d+)(,\s+)?)/i';
905905
$commit->close = [];
906906
foreach ($body as $bodyLine) {

0 commit comments

Comments
 (0)