Skip to content

Commit 9100f33

Browse files
committed
Enhancement: Extract local type alias
1 parent f76bf29 commit 9100f33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Node/Builder.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
* @phpstan-import-type TestType from CodeCoverage
3232
* @phpstan-import-type FunctionCoverageForFileType from ProcessedCodeCoverageData
3333
* @phpstan-import-type LineCoverageForFileType from ProcessedCodeCoverageData
34+
*
35+
* @phpstan-type DirectoryStructureType array<string, array{lineCoverage: LineCoverageForFileType, functionCoverage: FunctionCoverageForFileType}>
3436
*/
3537
final readonly class Builder
3638
{
@@ -134,7 +136,7 @@ private function addItems(Directory $root, array $items, array $tests): void
134136
* )
135137
* </code>
136138
*
137-
* @return array<string, array{lineCoverage: LineCoverageForFileType, functionCoverage: FunctionCoverageForFileType}>
139+
* @return DirectoryStructureType
138140
*/
139141
private function buildDirectoryStructure(ProcessedCodeCoverageData $data): array
140142
{

0 commit comments

Comments
 (0)