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 a98b75b8f3fa07037285f129524a93e9862792f6
3 changes: 3 additions & 0 deletions src/Data/ProcessedCodeCoverageData.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
return $this->functionCoverage;
}

/**
* @return list<non-empty-string>
*/
public function coveredFiles(): array
{
ksort($this->lineCoverage);
Expand Down Expand Up @@ -235,7 +238,7 @@
*
* @return 1|2|3|4
*/
private function priorityForLine(array $data, int $line): int

Check failure on line 241 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