@@ -213,8 +213,6 @@ public function dataProviderSetMultiple(): array
213213 /**
214214 * @dataProvider dataProviderSetMultiple
215215 *
216- * @param int|null $ttl
217- *
218216 * @throws InvalidArgumentException
219217 */
220218 public function testSetMultiple (?int $ ttl ): void
@@ -230,15 +228,13 @@ public function testSetMultiple(?int $ttl): void
230228
231229 foreach ($ data as $ key => $ value ) {
232230 $ this ->assertSameExceptObject ($ value , $ this ->cache ->get ((string ) $ key ));
233- $ this ->assertSame ($ ttl === null ? -1 : $ ttl , $ client ->ttl ($ key ));
231+ $ this ->assertSame ($ ttl ?? -1 , $ client ->ttl ($ key ));
234232 }
235233 }
236234
237235 /**
238236 * @dataProvider dataProviderSetMultiple
239237 *
240- * @param int|null $ttl
241- *
242238 * @throws InvalidArgumentException
243239 */
244240 public function testReSetMultiple (?int $ ttl ): void
@@ -342,12 +338,9 @@ public function dataProviderNormalizeTtl(): array
342338 /**
343339 * @dataProvider dataProviderNormalizeTtl
344340 *
345- * @param mixed $ttl
346- * @param mixed $expectedResult
347- *
348341 * @throws ReflectionException
349342 */
350- public function testNormalizeTtl ($ ttl , $ expectedResult ): void
343+ public function testNormalizeTtl (mixed $ ttl , mixed $ expectedResult ): void
351344 {
352345 $ reflection = new ReflectionObject ($ this ->cache );
353346 $ method = $ reflection ->getMethod ('normalizeTtl ' );
@@ -391,9 +384,6 @@ public function getIterator(): ArrayIterator
391384 /**
392385 * @dataProvider iterableProvider
393386 *
394- * @param array $array
395- * @param iterable $iterable
396- *
397387 * @throws InvalidArgumentException
398388 */
399389 public function testValuesAsIterable (array $ array , iterable $ iterable ): void
@@ -413,65 +403,53 @@ public function invalidKeyProvider(): array
413403
414404 /**
415405 * @dataProvider invalidKeyProvider
416- *
417- * @param mixed $key
418406 */
419- public function testGetThrowExceptionForInvalidKey ($ key ): void
407+ public function testGetThrowExceptionForInvalidKey (mixed $ key ): void
420408 {
421409 $ this ->expectException (InvalidArgumentException::class);
422410 $ this ->cache ->get ($ key );
423411 }
424412
425413 /**
426414 * @dataProvider invalidKeyProvider
427- *
428- * @param mixed $key
429415 */
430- public function testSetThrowExceptionForInvalidKey ($ key ): void
416+ public function testSetThrowExceptionForInvalidKey (mixed $ key ): void
431417 {
432418 $ this ->expectException (InvalidArgumentException::class);
433419 $ this ->cache ->set ($ key , 'value ' );
434420 }
435421
436422 /**
437423 * @dataProvider invalidKeyProvider
438- *
439- * @param mixed $key
440424 */
441- public function testDeleteThrowExceptionForInvalidKey ($ key ): void
425+ public function testDeleteThrowExceptionForInvalidKey (mixed $ key ): void
442426 {
443427 $ this ->expectException (InvalidArgumentException::class);
444428 $ this ->cache ->delete ($ key );
445429 }
446430
447431 /**
448432 * @dataProvider invalidKeyProvider
449- *
450- * @param mixed $key
451433 */
452- public function testGetMultipleThrowExceptionForInvalidKeys ($ key ): void
434+ public function testGetMultipleThrowExceptionForInvalidKeys (mixed $ key ): void
453435 {
454436 $ this ->expectException (InvalidArgumentException::class);
455437 $ this ->cache ->getMultiple ([$ key ]);
456438 }
457439
458440 /**
459441 * @dataProvider invalidKeyProvider
460- *
461- * @param mixed $key
462442 */
463- public function testDeleteMultipleThrowExceptionForInvalidKeys ($ key ): void
443+ public function testDeleteMultipleThrowExceptionForInvalidKeys (mixed $ key ): void
464444 {
465445 $ this ->expectException (InvalidArgumentException::class);
466446 $ this ->cache ->deleteMultiple ([$ key ]);
467447 }
468448
469449 /**
470450 * @dataProvider invalidKeyProvider
471- *
472- * @param mixed $key
473451 */
474- public function testHasThrowExceptionForInvalidKey ($ key ): void
452+ public function testHasThrowExceptionForInvalidKey (mixed $ key ): void
475453 {
476454 $ this ->expectException (InvalidArgumentException::class);
477455 $ this ->cache ->has ($ key );
0 commit comments