Skip to content

Commit f4aa4de

Browse files
Add return types, round 1
1 parent 1a168b1 commit f4aa4de

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Lock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct(Key $key, PersistingStoreInterface $store, float $tt
4949
$this->logger = new NullLogger();
5050
}
5151

52-
public function __sleep()
52+
public function __sleep(): array
5353
{
5454
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
5555
}

Store/RedisStore.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,7 @@ public function exists(Key $key)
244244
return (bool) $this->evaluate($script, (string) $key, [microtime(true), $this->getUniqueToken($key)]);
245245
}
246246

247-
/**
248-
* Evaluates a script in the corresponding redis client.
249-
*
250-
* @return mixed
251-
*/
252-
private function evaluate(string $script, string $resource, array $args)
247+
private function evaluate(string $script, string $resource, array $args): mixed
253248
{
254249
if (
255250
$this->redis instanceof \Redis ||

0 commit comments

Comments
 (0)