diff --git a/src/Psalm/Report/XmlReport.php b/src/Psalm/Report/XmlReport.php index 4f102a1f9..bb6da1b23 100644 --- a/src/Psalm/Report/XmlReport.php +++ b/src/Psalm/Report/XmlReport.php @@ -13,10 +13,10 @@ class XmlReport extends Report */ public function create(): string { - $items = Array2XML::createXML( + $xml = Array2XML::createXML( 'report', [ - 'item' => + 'item' => array_map( function (IssueData $issue_data) { return (array) $issue_data; },