@@ -85,9 +85,6 @@ public function dataProvider(): array
8585 /**
8686 * @dataProvider dataProvider
8787 *
88- * @param string $key
89- * @param mixed $value
90- *
9188 * @throws InvalidArgumentException
9289 */
9390 public function testSet (string $ key , mixed $ value ): void
@@ -100,9 +97,6 @@ public function testSet(string $key, mixed $value): void
10097 /**
10198 * @dataProvider dataProvider
10299 *
103- * @param string $key
104- * @param mixed $value
105- *
106100 * @throws InvalidArgumentException
107101 */
108102 public function testSetWithTtl (string $ key , mixed $ value ): void
@@ -252,12 +246,9 @@ public function dataProviderNormalizeTtl(): array
252246 /**
253247 * @dataProvider dataProviderNormalizeTtl
254248 *
255- * @param mixed $ttl
256- * @param mixed $expectedResult
257- *
258249 * @throws ReflectionException
259250 */
260- public function testNormalizeTtl ($ ttl , $ expectedResult ): void
251+ public function testNormalizeTtl (mixed $ ttl , mixed $ expectedResult ): void
261252 {
262253 $ reflection = new ReflectionObject ($ this ->cache );
263254 $ method = $ reflection ->getMethod ('normalizeTtl ' );
@@ -281,54 +272,44 @@ public function invalidKeyProvider(): array
281272
282273 /**
283274 * @dataProvider invalidKeyProvider
284- *
285- * @param mixed $key
286275 */
287- public function testGetThrowExceptionForInvalidKey ($ key ): void
276+ public function testGetThrowExceptionForInvalidKey (mixed $ key ): void
288277 {
289278 $ this ->expectException (InvalidArgumentException::class);
290279 $ this ->cache ->get ($ key );
291280 }
292281
293282 /**
294283 * @dataProvider invalidKeyProvider
295- *
296- * @param mixed $key
297284 */
298- public function testHasThrowExceptionForInvalidKey ($ key ): void
285+ public function testHasThrowExceptionForInvalidKey (mixed $ key ): void
299286 {
300287 $ this ->expectException (InvalidArgumentException::class);
301288 $ this ->cache ->has ($ key );
302289 }
303290
304291 /**
305292 * @dataProvider invalidKeyProvider
306- *
307- * @param mixed $key
308293 */
309- public function testDeleteThrowExceptionForInvalidKey ($ key ): void
294+ public function testDeleteThrowExceptionForInvalidKey (mixed $ key ): void
310295 {
311296 $ this ->expectException (InvalidArgumentException::class);
312297 $ this ->cache ->delete ($ key );
313298 }
314299
315300 /**
316301 * @dataProvider invalidKeyProvider
317- *
318- * @param mixed $key
319302 */
320- public function testGetMultipleThrowExceptionForInvalidKeys ($ key ): void
303+ public function testGetMultipleThrowExceptionForInvalidKeys (mixed $ key ): void
321304 {
322305 $ this ->expectException (InvalidArgumentException::class);
323306 $ this ->cache ->getMultiple ([$ key ]);
324307 }
325308
326309 /**
327310 * @dataProvider invalidKeyProvider
328- *
329- * @param mixed $key
330311 */
331- public function testDeleteMultipleThrowExceptionForInvalidKeys ($ key ): void
312+ public function testDeleteMultipleThrowExceptionForInvalidKeys (mixed $ key ): void
332313 {
333314 $ this ->expectException (InvalidArgumentException::class);
334315 $ this ->cache ->deleteMultiple ([$ key ]);
@@ -353,8 +334,6 @@ public function testSetMultipleThrowExceptionForEmptyArray(): void
353334 }
354335
355336 /**
356- * @param array $values
357- *
358337 * @return array
359338 */
360339 private function prepareKeysOfValues (array $ values ): array
@@ -377,10 +356,6 @@ private function getDataProviderData(): array
377356 return $ data ;
378357 }
379358
380- /**
381- * @param mixed $expected
382- * @param mixed $actual
383- */
384359 private function assertSameExceptObject (mixed $ expected , mixed $ actual ): void
385360 {
386361 // Assert for all types.
@@ -443,9 +418,6 @@ public function getIterator(): ArrayIterator
443418 /**
444419 * @dataProvider iterableProvider
445420 *
446- * @param array $array
447- * @param iterable $iterable
448- *
449421 * @throws InvalidArgumentException
450422 */
451423 public function testValuesAsIterable (array $ array , iterable $ iterable ): void
0 commit comments