Skip to content

Commit 796232d

Browse files
committed
simplify doctypes
1 parent b5ed1f5 commit 796232d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Data/ProcessedCodeCoverageData.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
* @phpstan-import-type XdebugFunctionCoverageType from XdebugDriver
2626
*
2727
* @phpstan-type TestIdType string
28-
* @phpstan-type FunctionCoverageDataType ProcessedFunctionCoverageData
29-
* @phpstan-type FunctionCoverageType array<string, array<string, FunctionCoverageDataType>>
28+
* @phpstan-type FunctionCoverageType array<string, array<string, ProcessedFunctionCoverageData>>
3029
* @phpstan-type LineCoverageType array<string, array<int, null|list<TestIdType>>>
3130
*/
3231
final class ProcessedCodeCoverageData
@@ -235,7 +234,7 @@ private function priorityForLine(array $data, int $line): int
235234
/**
236235
* For a function we have never seen before, copy all data over and simply init the 'hit' array.
237236
*
238-
* @param FunctionCoverageDataType|XdebugFunctionCoverageType $functionData
237+
* @param ProcessedFunctionCoverageData|XdebugFunctionCoverageType $functionData
239238
*/
240239
private function initPreviouslyUnseenFunction(string $file, string $functionName, ProcessedFunctionCoverageData|array $functionData): void
241240
{
@@ -251,7 +250,7 @@ private function initPreviouslyUnseenFunction(string $file, string $functionName
251250
* Techniques such as mocking and where the contents of a file are different vary during tests (e.g. compiling
252251
* containers) mean that the functions inside a file cannot be relied upon to be static.
253252
*
254-
* @param FunctionCoverageDataType|XdebugFunctionCoverageType $functionData
253+
* @param ProcessedFunctionCoverageData|XdebugFunctionCoverageType $functionData
255254
*/
256255
private function initPreviouslySeenFunction(string $file, string $functionName, ProcessedFunctionCoverageData|array $functionData): void
257256
{

0 commit comments

Comments
 (0)