Skip to content

Commit ce84c35

Browse files
Ignore equal.notAllowed error
1 parent de39d9d commit ce84c35

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Report/Clover.php

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public function process(CodeCoverage $coverage, ?string $target = null, ?string
7979
}
8080

8181
foreach ($class['methods'] as $methodName => $method) {
82+
/** @phpstan-ignore equal.notAllowed */
8283
if ($method['executableLines'] == 0) {
8384
continue;
8485
}
@@ -87,6 +88,7 @@ public function process(CodeCoverage $coverage, ?string $target = null, ?string
8788
$classStatements += $method['executableLines'];
8889
$coveredClassStatements += $method['executedLines'];
8990

91+
/** @phpstan-ignore equal.notAllowed */
9092
if ($method['coverage'] == 100) {
9193
$coveredMethods++;
9294
}

src/Report/Text.php

+3
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ public function process(CodeCoverage $coverage, bool $showColors = false): strin
210210
$classMethods = 0;
211211

212212
foreach ($class['methods'] as $method) {
213+
/** @phpstan-ignore equal.notAllowed */
213214
if ($method['executableLines'] == 0) {
214215
continue;
215216
}
@@ -222,6 +223,7 @@ public function process(CodeCoverage $coverage, bool $showColors = false): strin
222223
$classExecutablePaths += $method['executablePaths'];
223224
$classExecutedPaths += $method['executedPaths'];
224225

226+
/** @phpstan-ignore equal.notAllowed */
225227
if ($method['coverage'] == 100) {
226228
$coveredMethods++;
227229
}
@@ -251,6 +253,7 @@ public function process(CodeCoverage $coverage, bool $showColors = false): strin
251253
$resetColor = '';
252254

253255
foreach ($classCoverage as $fullQualifiedPath => $classInfo) {
256+
/** @phpstan-ignore notEqual.notAllowed */
254257
if ($this->showUncoveredFiles || $classInfo['statementsCovered'] != 0) {
255258
if ($showColors) {
256259
$methodColor = $this->coverageColor($classInfo['methodsCovered'], $classInfo['methodCount']);

0 commit comments

Comments
 (0)