Skip to content

Commit a4d5e78

Browse files
Fix clover processor
1 parent c8af3cc commit a4d5e78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Subscriber/Application/ApplicationFinishedSubscriber.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ public function notify(Finished $event): void
5858
);
5959
continue;
6060
}
61-
if ($this->minCoverageRules->hasOtherRulesThanTotalRule() && \XMLReader::ELEMENT == $reader->nodeType && 'class' == $reader->name && 3 === $reader->depth) {
61+
if ($this->minCoverageRules->hasOtherRulesThanTotalRule()
62+
&& \XMLReader::ELEMENT == $reader->nodeType && 'class' == $reader->name
63+
&& (3 === $reader->depth || 4 === $reader->depth)) {
6264
/** @var \SimpleXMLElement $node */
6365
$node = simplexml_load_string($reader->readInnerXml());
6466
/** @var string $className */

0 commit comments

Comments
 (0)