Skip to content

Commit 03d9a1d

Browse files
derrabusTobion
authored andcommitted
Add types to constructors and private/final/internal methods (Batch II)
1 parent 3c927c2 commit 03d9a1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Key.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function resetLifetime()
6060
/**
6161
* @param float $ttl the expiration delay of locks in seconds
6262
*/
63-
public function reduceLifetime($ttl)
63+
public function reduceLifetime(float $ttl)
6464
{
6565
$newTime = microtime(true) + $ttl;
6666

Store/MemcachedStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private function getUniqueToken(Key $key): string
161161
return $key->getState(__CLASS__);
162162
}
163163

164-
private function getValueAndCas(Key $key)
164+
private function getValueAndCas(Key $key): array
165165
{
166166
if (null === $this->useExtendedReturn) {
167167
$this->useExtendedReturn = version_compare(phpversion('memcached'), '2.9.9', '>');

0 commit comments

Comments
 (0)