Skip to content

Commit 084a4cd

Browse files
Do not keep data we do not need after building the map
1 parent a0adc21 commit 084a4cd

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

src/Target/MapBuilder.php

-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ public function build(Filter $filter, FileAnalyser $analyser): array
195195
'classes' => $classes,
196196
'classesThatExtendClass' => $classesThatExtendClass,
197197
'classesThatImplementInterface' => $classesThatImplementInterface,
198-
'traits' => $traits,
199198
'methods' => $methods,
200199
'functions' => $functions,
201200
'reverseLookup' => $reverseLookup,

src/Target/Mapper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use function array_unique;
1414

1515
/**
16-
* @phpstan-type TargetMap array{namespaces: TargetMapPart, classes: TargetMapPart, classesThatExtendClass: TargetMapPart, classesThatImplementInterface: TargetMapPart, traits: TargetMapPart, methods: TargetMapPart, functions: TargetMapPart, reverseLookup: ReverseLookup}
16+
* @phpstan-type TargetMap array{namespaces: TargetMapPart, classes: TargetMapPart, classesThatExtendClass: TargetMapPart, classesThatImplementInterface: TargetMapPart, methods: TargetMapPart, functions: TargetMapPart, reverseLookup: ReverseLookup}
1717
* @phpstan-type TargetMapPart array<non-empty-string, array<non-empty-string, list<positive-int>>>
1818
* @phpstan-type ReverseLookup array<non-empty-string, non-empty-string>
1919
*

tests/tests/Target/MapBuilderTest.php

-5
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ public function testBuildsMap(): void
6868
$file => range(26, 31),
6969
],
7070
],
71-
'traits' => [
72-
'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\T' => [
73-
$file => range(19, 24),
74-
],
75-
],
7671
'methods' => [
7772
'SebastianBergmann\\CodeCoverage\\StaticAnalysis\\T::four' => [
7873
$file => range(21, 23),

0 commit comments

Comments
 (0)