internal: fix phpstan errors

This commit is contained in:
2023-10-05 16:10:30 +07:00
parent fd321739d8
commit 18359e6dec
7 changed files with 50 additions and 26 deletions

View File

@@ -14,7 +14,7 @@ class Renderer
{
/**
* @param Accumulator $accumulator
* @return array
* @return array{0: string, 1: Metrics}
* @throws \DOMException
*/
public function renderAccumulator(Accumulator $accumulator): array
@@ -71,7 +71,7 @@ class Renderer
$xmlProject->appendChild($this->renderMetricsProject($xmlDocument, $projectMetrics));
return [$xmlDocument->saveXML(), $projectMetrics];
return [(string) $xmlDocument->saveXML(), $projectMetrics];
}
/**