From 7e67d58a8d1f6262f9f201e3646b6e45c88ba6a4 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 18 Aug 2022 11:22:36 +0200 Subject: [PATCH] build(robo): fix php warning in changelog builder --- RoboFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RoboFile.php b/RoboFile.php index 3c5b1f41b..d3468a9e6 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -900,7 +900,7 @@ public static function buildLogLine($commit, $remote) { . " ([$hash]($remote/commit/$hash))"; // Search for closed issues - $body = explode(PHP_EOL, $commit->body); + $body = explode(PHP_EOL, $commit->body ?? ''); $pattern = '/^((close|closes|fix|fixed) #(?P\\d+)(,\s+)?)/i'; $commit->close = []; foreach ($body as $bodyLine) {