Skip to content

Commit 02b852e

Browse files
Fix phpstan
1 parent c65fc61 commit 02b852e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Subscriber/Application/ApplicationFinishedSubscriber.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,16 @@ public function notify(Finished $event): void
4545
$reader = new \XMLReader();
4646
$reader->open($absolutePathToCloverXml);
4747
while ($reader->read()) {
48+
// Ignore this line until https://github.com/phpstan/phpstan/issues/8629 lands.
49+
/** @@phpstan-ignore-next-line */
4850
if ($this->minCoverageRules->hasTotalRule() && \XMLReader::ELEMENT == $reader->nodeType && 'metrics' == $reader->name && 2 === $reader->depth) {
4951
/** @var \SimpleXMLElement $node */
5052
$node = simplexml_load_string($reader->readOuterXml());
5153
$metricTotal = CoverageMetric::fromCloverXmlNode($node, MinCoverageRules::TOTAL);
5254
continue;
5355
}
54-
56+
// Ignore this line until https://github.com/phpstan/phpstan/issues/8629 lands.
57+
/** @@phpstan-ignore-next-line */
5558
if ($this->minCoverageRules->hasOtherRulesThanTotalRule() && \XMLReader::ELEMENT == $reader->nodeType && 'class' == $reader->name && 3 === $reader->depth) {
5659
/** @var \SimpleXMLElement $node */
5760
$node = simplexml_load_string($reader->readInnerXml());

0 commit comments

Comments
 (0)