File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,11 @@ final class CodeCoverage
4949 private ?TestSize $ currentSize = null ;
5050 private ProcessedCodeCoverageData $ data ;
5151 private bool $ useAnnotationsForIgnoringCode = true ;
52- private array $ tests = [];
52+
53+ /**
54+ * @psalm-var array<string, array{size: string, status: string}>
55+ */
56+ private array $ tests = [];
5357
5458 /**
5559 * @psalm-var list<class-string>
@@ -116,15 +120,15 @@ public function setData(ProcessedCodeCoverageData $data): void
116120 }
117121
118122 /**
119- * Returns the test data.
123+ * @psalm-return array<string, array{size: string, status: string}>
120124 */
121125 public function getTests (): array
122126 {
123127 return $ this ->tests ;
124128 }
125129
126130 /**
127- * Sets the test data.
131+ * @psalm-param array<string, array{size: string, status: string}> $tests
128132 */
129133 public function setTests (array $ tests ): void
130134 {
Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ public function build(CodeCoverage $coverage): Directory
5555 return $ root ;
5656 }
5757
58+ /**
59+ * @psalm-param array<string, array{size: string, status: string}> $tests
60+ */
5861 private function addItems (Directory $ root , array $ items , array $ tests ): void
5962 {
6063 foreach ($ items as $ key => $ value ) {
You can’t perform that action at this time.
0 commit comments