1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Initialise output to string

This commit is contained in:
Matthew Brown 2018-12-18 17:47:28 -05:00
parent 0655e1c19c
commit 4cd7d923df

View File

@ -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',