Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix: Describe iterable type
  • Loading branch information
localheinz committed Apr 27, 2025
commit 3e4b94fe2e2288c48470c2564317cc3731ef4545
3 changes: 3 additions & 0 deletions src/Data/ProcessedCodeCoverageData.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,15 @@
}
}

/**
* @param LineCoverageType $lineCoverage
*/
public function setLineCoverage(array $lineCoverage): void
{
$this->lineCoverage = $lineCoverage;
}

public function lineCoverage(): array

Check failure on line 124 in src/Data/ProcessedCodeCoverageData.php

View workflow job for this annotation

GitHub Actions / Static Analysis

Method SebastianBergmann\CodeCoverage\Data\ProcessedCodeCoverageData::lineCoverage() return type has no value type specified in iterable type array.
{
ksort($this->lineCoverage);

Expand All @@ -143,7 +146,7 @@
return $this->functionCoverage;
}

public function coveredFiles(): array

Check failure on line 149 in src/Data/ProcessedCodeCoverageData.php

View workflow job for this annotation

GitHub Actions / Static Analysis

Method SebastianBergmann\CodeCoverage\Data\ProcessedCodeCoverageData::coveredFiles() return type has no value type specified in iterable type array.
{
ksort($this->lineCoverage);

Expand Down Expand Up @@ -229,7 +232,7 @@
*
* @return 1|2|3|4
*/
private function priorityForLine(array $data, int $line): int

Check failure on line 235 in src/Data/ProcessedCodeCoverageData.php

View workflow job for this annotation

GitHub Actions / Static Analysis

Method SebastianBergmann\CodeCoverage\Data\ProcessedCodeCoverageData::priorityForLine() has parameter $data with no value type specified in iterable type array.
{
if (!array_key_exists($line, $data)) {
return 1;
Expand Down
Loading