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
Enhancement: Extract local type alias
  • Loading branch information
localheinz committed Apr 27, 2025
commit 1d60bf060196cd46254d48516e9b033123bed4d1
3 changes: 2 additions & 1 deletion src/Data/ProcessedCodeCoverageData.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
* hit: list<TestIdType>
* }
* @phpstan-type FunctionCoverageType array<string, array<string, FunctionCoverageDataType>>
* @phpstan-type LineCoverageType array<string, array<int, null|list<TestIdType>>>
* @phpstan-type LineCoverageForFileType array<int, null|list<TestIdType>>
* @phpstan-type LineCoverageType array<string, LineCoverageForFileType>
*/
final class ProcessedCodeCoverageData
{
Expand Down Expand Up @@ -238,7 +239,7 @@
*
* @return 1|2|3|4
*/
private function priorityForLine(array $data, int $line): int

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