Skip to content

Commit aed75dd

Browse files
committed
Merge branch '4.4' into 5.1
2 parents 9ff3c3b + 25c6703 commit aed75dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Store/MemcachedStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function putOffExpiration(Key $key, float $ttl)
8282

8383
$token = $this->getUniqueToken($key);
8484

85-
list($value, $cas) = $this->getValueAndCas($key);
85+
[$value, $cas] = $this->getValueAndCas($key);
8686

8787
$key->reduceLifetime($ttl);
8888
// Could happens when we ask a putOff after a timeout but in luck nobody steal the lock
@@ -114,7 +114,7 @@ public function delete(Key $key)
114114
{
115115
$token = $this->getUniqueToken($key);
116116

117-
list($value, $cas) = $this->getValueAndCas($key);
117+
[$value, $cas] = $this->getValueAndCas($key);
118118

119119
if ($value !== $token) {
120120
// we are not the owner of the lock. Nothing to do.

Tests/Store/SemaphoreStoreTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private function getOpenedSemaphores()
6060
if ('------ Semaphore Status --------' !== $lines[0]) {
6161
throw new \Exception('Failed to extract list of opened semaphores. Expected a Semaphore status, got '.implode(\PHP_EOL, $lines));
6262
}
63-
list($key, $value) = explode(' = ', $lines[1]);
63+
[$key, $value] = explode(' = ', $lines[1]);
6464
if ('used arrays' !== $key) {
6565
throw new \Exception('Failed to extract list of opened semaphores. Expected a "used arrays" key, got '.implode(\PHP_EOL, $lines));
6666
}

0 commit comments

Comments
 (0)