From 4cd7d923dfad0eb6d0ac8f8fe26c9ce70e315b6c Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Tue, 18 Dec 2018 17:47:28 -0500 Subject: [PATCH] Initialise output to string --- src/Psalm/Output/Text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Output/Text.php b/src/Psalm/Output/Text.php index c2dfe9617..6a097671d 100644 --- a/src/Psalm/Output/Text.php +++ b/src/Psalm/Output/Text.php @@ -11,7 +11,7 @@ class Text extends Output */ public function create(): string { - $output = null; + $output = ''; foreach ($this->issues_data as $issue_data) { $output .= sprintf( '%s:%s:%s:%s - %s: %s',