File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,7 @@ public function testCreateLock()
35
35
$ keys [] = $ key ;
36
36
37
37
return true ;
38
- }))
39
- ->willReturn (true );
38
+ }));
40
39
41
40
$ logger = $ this ->createMock (LoggerInterface::class);
42
41
$ factory = new LockFactory ($ store );
@@ -65,8 +64,7 @@ public function testCreateLockFromKey()
65
64
$ keys [] = $ key ;
66
65
67
66
return true ;
68
- }))
69
- ->willReturn (true );
67
+ }));
70
68
71
69
$ logger = $ this ->createMock (LoggerInterface::class);
72
70
$ factory = new LockFactory ($ store );
Original file line number Diff line number Diff line change @@ -516,16 +516,14 @@ public function testAcquireTwiceWithExpiration()
516
516
private $ keys = [];
517
517
private $ initialTtl = 30 ;
518
518
519
- public function save (Key $ key )
519
+ public function save (Key $ key ): void
520
520
{
521
521
$ key ->reduceLifetime ($ this ->initialTtl );
522
522
$ this ->keys [spl_object_hash ($ key )] = $ key ;
523
523
$ this ->checkNotExpired ($ key );
524
-
525
- return true ;
526
524
}
527
525
528
- public function delete (Key $ key )
526
+ public function delete (Key $ key ): void
529
527
{
530
528
unset($ this ->keys [spl_object_hash ($ key )]);
531
529
}
@@ -535,7 +533,7 @@ public function exists(Key $key): bool
535
533
return isset ($ this ->keys [spl_object_hash ($ key )]);
536
534
}
537
535
538
- public function putOffExpiration (Key $ key , $ ttl )
536
+ public function putOffExpiration (Key $ key , $ ttl ): void
539
537
{
540
538
$ key ->reduceLifetime ($ ttl );
541
539
$ this ->checkNotExpired ($ key );
You can’t perform that action at this time.
0 commit comments