Skip to content

Commit 105fae8

Browse files
Simplify
1 parent ba8e4ef commit 105fae8

9 files changed

+17
-13
lines changed

src/Data/ProcessedCodeCoverageData.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
use function is_array;
1818
use function ksort;
1919
use SebastianBergmann\CodeCoverage\Driver\Driver;
20+
use SebastianBergmann\CodeCoverage\Driver\XdebugDriver;
2021

2122
/**
2223
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
2324
*
24-
* @phpstan-import-type XdebugFunctionCoverageType from \SebastianBergmann\CodeCoverage\Driver\XdebugDriver
25+
* @phpstan-import-type XdebugFunctionCoverageType from XdebugDriver
2526
*
2627
* @phpstan-type TestIdType = string
2728
*/

src/Data/RawCodeCoverageData.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@
2626
use function str_starts_with;
2727
use function trim;
2828
use SebastianBergmann\CodeCoverage\Driver\Driver;
29+
use SebastianBergmann\CodeCoverage\Driver\XdebugDriver;
2930
use SebastianBergmann\CodeCoverage\StaticAnalysis\FileAnalyser;
3031

3132
/**
3233
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
3334
*
34-
* @phpstan-import-type XdebugFunctionsCoverageType from \SebastianBergmann\CodeCoverage\Driver\XdebugDriver
35-
* @phpstan-import-type XdebugCodeCoverageWithoutPathCoverageType from \SebastianBergmann\CodeCoverage\Driver\XdebugDriver
36-
* @phpstan-import-type XdebugCodeCoverageWithPathCoverageType from \SebastianBergmann\CodeCoverage\Driver\XdebugDriver
35+
* @phpstan-import-type XdebugFunctionsCoverageType from XdebugDriver
36+
* @phpstan-import-type XdebugCodeCoverageWithoutPathCoverageType from XdebugDriver
37+
* @phpstan-import-type XdebugCodeCoverageWithPathCoverageType from XdebugDriver
3738
*/
3839
final class RawCodeCoverageData
3940
{

src/Node/AbstractNode.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
/**
2222
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
2323
*
24-
* @phpstan-import-type ProcessedFunctionType from \SebastianBergmann\CodeCoverage\Node\File
25-
* @phpstan-import-type ProcessedClassType from \SebastianBergmann\CodeCoverage\Node\File
26-
* @phpstan-import-type ProcessedTraitType from \SebastianBergmann\CodeCoverage\Node\File
24+
* @phpstan-import-type ProcessedFunctionType from File
25+
* @phpstan-import-type ProcessedClassType from File
26+
* @phpstan-import-type ProcessedTraitType from File
2727
*/
2828
abstract class AbstractNode implements Countable
2929
{

src/Node/Builder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
3030
*
31-
* @phpstan-import-type TestType from \SebastianBergmann\CodeCoverage\CodeCoverage
31+
* @phpstan-import-type TestType from CodeCoverage
3232
*/
3333
final readonly class Builder
3434
{

src/Node/File.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use function count;
1414
use function range;
1515
use SebastianBergmann\CodeCoverage\StaticAnalysis\Class_;
16+
use SebastianBergmann\CodeCoverage\StaticAnalysis\FileAnalyser;
1617
use SebastianBergmann\CodeCoverage\StaticAnalysis\Function_;
1718
use SebastianBergmann\CodeCoverage\StaticAnalysis\LinesOfCode;
1819
use SebastianBergmann\CodeCoverage\StaticAnalysis\Method;
@@ -21,7 +22,7 @@
2122
/**
2223
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
2324
*
24-
* @phpstan-import-type LinesType from \SebastianBergmann\CodeCoverage\StaticAnalysis\FileAnalyser
25+
* @phpstan-import-type LinesType from FileAnalyser
2526
*
2627
* @phpstan-type ProcessedFunctionType = array{
2728
* functionName: string,

src/Report/Xml/Tests.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111

1212
use function assert;
1313
use DOMElement;
14+
use SebastianBergmann\CodeCoverage\CodeCoverage;
1415

1516
/**
1617
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
1718
*
18-
* @phpstan-import-type TestType from \SebastianBergmann\CodeCoverage\CodeCoverage
19+
* @phpstan-import-type TestType from CodeCoverage
1920
*/
2021
final readonly class Tests
2122
{

src/StaticAnalysis/CachingFileAnalyser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/**
2424
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
2525
*
26-
* @phpstan-import-type LinesType from \SebastianBergmann\CodeCoverage\StaticAnalysis\FileAnalyser
26+
* @phpstan-import-type LinesType from FileAnalyser
2727
*/
2828
final class CachingFileAnalyser implements FileAnalyser
2929
{

src/StaticAnalysis/ExecutableLinesFindingVisitor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
2929
*
30-
* @phpstan-import-type LinesType from \SebastianBergmann\CodeCoverage\StaticAnalysis\FileAnalyser
30+
* @phpstan-import-type LinesType from FileAnalyser
3131
*/
3232
final class ExecutableLinesFindingVisitor extends NodeVisitorAbstract
3333
{

src/StaticAnalysis/ParsingFileAnalyser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
/**
3535
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
3636
*
37-
* @phpstan-import-type LinesType from \SebastianBergmann\CodeCoverage\StaticAnalysis\FileAnalyser
37+
* @phpstan-import-type LinesType from FileAnalyser
3838
*/
3939
final class ParsingFileAnalyser implements FileAnalyser
4040
{

0 commit comments

Comments
 (0)