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: Use local type alias
  • Loading branch information
localheinz committed Apr 27, 2025
commit 952cc1e1d80693af73853989b778334d152814d8
3 changes: 2 additions & 1 deletion src/Node/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
*
* @phpstan-import-type TestType from CodeCoverage
* @phpstan-import-type FunctionCoverageForFileType from ProcessedCodeCoverageData
*/
final readonly class Builder
{
Expand Down Expand Up @@ -60,7 +61,7 @@
/**
* @param array<string, TestType> $tests
*/
private function addItems(Directory $root, array $items, array $tests): void

Check failure on line 64 in src/Node/Builder.php

View workflow job for this annotation

GitHub Actions / Static Analysis

Method SebastianBergmann\CodeCoverage\Node\Builder::addItems() has parameter $items with no value type specified in iterable type array.
{
foreach ($items as $key => $value) {
$key = (string) $key;
Expand Down Expand Up @@ -132,7 +133,7 @@
* )
* </code>
*
* @return array<string, array<string, array{lineCoverage: array<int, int>, functionCoverage: array<string, array<int, int>>}>>
* @return array<string, array<string, array{lineCoverage: array<int, int>, functionCoverage: FunctionCoverageForFileType}>>
*/
private function buildDirectoryStructure(ProcessedCodeCoverageData $data): array
{
Expand Down
Loading