Skip to content
Permalink
Browse files

apply pretty formatting when there are no issues (#1946)

  • Loading branch information...
SignpostMarv authored and muglug committed Jul 13, 2019
1 parent ee13874 commit 96429ff94f29ba6d14625e92ad7d0a8185568503
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Psalm/ErrorBaseline.php
@@ -285,7 +285,7 @@ function (string $extension) : string {
$baselineDoc->formatOutput = true;
$xml = preg_replace_callback(
'/<files (psalm-version="[^"]+") (?:php-version="(.+)">\n)/',
'/<files (psalm-version="[^"]+") (?:php-version="(.+)"(\/?>)\n)/',
/**
* @param array<int, string> $matches
*/
@@ -301,7 +301,7 @@ function (array $matches) : string {
"\n" .
' "' .
"\n" .
'>' .
$matches[3] .
"\n";
},
$baselineDoc->saveXML()

0 comments on commit 96429ff

Please sign in to comment.
You can’t perform that action at this time.