@@ -116,20 +116,26 @@ public function testLegacy($options, $isValidParam, bool $expected, string $mess
116116 }
117117 }
118118
119- /** @psalm- return array <array{string|list<string>, array<numeric , string>}> */
119+ /** @return list <array{0: numeric- string|list<numeric- string>, 1: array<int , string>}> */
120120 public static function getHashProvider (): array
121121 {
122122 return [
123- ['12333 ' , ['12333 ' => 'sha1 ' ]],
124- [['12345 ' , '12333 ' , '12344 ' ], ['12345 ' => 'sha1 ' , '12333 ' => 'sha1 ' , '12344 ' => 'sha1 ' ]],
123+ [
124+ '12333 ' ,
125+ [12333 => 'sha1 ' ],
126+ ],
127+ [
128+ ['12345 ' , '12333 ' , '12344 ' ],
129+ [12345 => 'sha1 ' , 12333 => 'sha1 ' , 12344 => 'sha1 ' ],
130+ ],
125131 ];
126132 }
127133
128134 /**
129135 * Ensures that getSha1() returns expected value
130136 *
131- * @psalm-param string|list<string> $hash
132- * @psalm-param array<numeric , string> $expected
137+ * @psalm-param numeric- string|list<numeric- string> $hash
138+ * @psalm-param array<int , string> $expected
133139 */
134140 #[DataProvider('getHashProvider ' )]
135141 public function testGetSha1 ($ hash , array $ expected ): void
@@ -142,8 +148,8 @@ public function testGetSha1($hash, array $expected): void
142148 /**
143149 * Ensures that getHash() returns expected value
144150 *
145- * @psalm-param string|list<string> $hash
146- * @psalm-param array<numeric , string> $expected
151+ * @psalm-param numeric- string|list<numeric- string> $hash
152+ * @psalm-param array<int , string> $expected
147153 */
148154 #[DataProvider('getHashProvider ' )]
149155 public function testGetHash ($ hash , array $ expected ): void
@@ -156,8 +162,8 @@ public function testGetHash($hash, array $expected): void
156162 /**
157163 * Ensures that setSha1() returns expected value
158164 *
159- * @psalm-param string|list<string> $hash
160- * @psalm-param array<numeric , string> $expected
165+ * @psalm-param numeric- string|list<numeric- string> $hash
166+ * @psalm-param array<int , string> $expected
161167 */
162168 #[DataProvider('getHashProvider ' )]
163169 public function testSetSha1 ($ hash , array $ expected ): void
@@ -171,8 +177,8 @@ public function testSetSha1($hash, array $expected): void
171177 /**
172178 * Ensures that setHash() returns expected value
173179 *
174- * @psalm-param string|list<string> $hash
175- * @psalm-param array<numeric , string> $expected
180+ * @psalm-param numeric- string|list<numeric- string> $hash
181+ * @psalm-param array<int , string> $expected
176182 */
177183 #[DataProvider('getHashProvider ' )]
178184 public function testSetHash ($ hash , array $ expected ): void
0 commit comments