Skip to content

Commit

Permalink
apply pretty formatting when there are no issues (#1946)
Browse files Browse the repository at this point in the history
  • Loading branch information
SignpostMarv authored and muglug committed Jul 13, 2019
1 parent ee13874 commit 96429ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Psalm/ErrorBaseline.php
Expand Up @@ -285,7 +285,7 @@ function (string $extension) : string {
$baselineDoc->formatOutput = true; $baselineDoc->formatOutput = true;


$xml = preg_replace_callback( $xml = preg_replace_callback(
'/<files (psalm-version="[^"]+") (?:php-version="(.+)">\n)/', '/<files (psalm-version="[^"]+") (?:php-version="(.+)"(\/?>)\n)/',
/** /**
* @param array<int, string> $matches * @param array<int, string> $matches
*/ */
Expand All @@ -301,7 +301,7 @@ function (array $matches) : string {
"\n" . "\n" .
' "' . ' "' .
"\n" . "\n" .
'>' . $matches[3] .
"\n"; "\n";
}, },
$baselineDoc->saveXML() $baselineDoc->saveXML()
Expand Down

0 comments on commit 96429ff

Please sign in to comment.