Skip to content

Commit e31de05

Browse files
Document array shape
1 parent 54be6f2 commit e31de05

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Node/File.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@
9292
*/
9393
final class File extends AbstractNode
9494
{
95+
/**
96+
* @psalm-var array<int, ?list<non-empty-string>>
97+
*/
9598
private array $lineCoverageData;
9699
private array $functionCoverageData;
97100
private readonly array $testData;
@@ -135,6 +138,7 @@ final class File extends AbstractNode
135138
private array $codeUnitsByLine = [];
136139

137140
/**
141+
* @psalm-param array<int, ?list<non-empty-string>> $lineCoverageData
138142
* @psalm-param LinesOfCodeType $linesOfCode
139143
* @psalm-param array<string, CodeUnitClassType> $classes
140144
* @psalm-param array<string, CodeUnitTraitType> $traits
@@ -157,6 +161,9 @@ public function count(): int
157161
return 1;
158162
}
159163

164+
/**
165+
* @psalm-return array<int, ?list<non-empty-string>>
166+
*/
160167
public function lineCoverageData(): array
161168
{
162169
return $this->lineCoverageData;

0 commit comments

Comments
 (0)