From c05465eab460a5421e0e29beeb32aca6a97dad46 Mon Sep 17 00:00:00 2001 From: Gregor Harlan Date: Sat, 18 Feb 2023 12:44:16 +0100 Subject: [PATCH 1/2] Allow spatie/array-to-xml v3 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2ca4e0653a8..d62c80c27c1 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0", "nikic/php-parser": "^4.13", "sebastian/diff": "^4.0 || ^5.0", - "spatie/array-to-xml": "^2.17.0", + "spatie/array-to-xml": "^2.17.0 || ^3.0", "symfony/console": "^4.1.6 || ^5.0 || ^6.0", "symfony/filesystem": "^5.4 || ^6.0" }, From 80e781315aef38aada5a8d50243d873639812ac5 Mon Sep 17 00:00:00 2001 From: Gregor Harlan Date: Sat, 18 Feb 2023 12:58:40 +0100 Subject: [PATCH 2/2] RedundantCast --- src/Psalm/Report/XmlReport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Report/XmlReport.php b/src/Psalm/Report/XmlReport.php index 0e1622e5830..cabc7c9d046 100644 --- a/src/Psalm/Report/XmlReport.php +++ b/src/Psalm/Report/XmlReport.php @@ -14,7 +14,7 @@ final class XmlReport extends Report { public function create(): string { - $xml = (string) ArrayToXml::convert( + $xml = ArrayToXml::convert( [ 'item' => array_map( static function (IssueData $issue_data): array {