Fix docs (#51) #185
Annotations
5 warnings
PHP 8.1-ubuntu-latest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP 8.1-ubuntu-latest
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
PHP 8.1-ubuntu-latest:
src/RedisMutex.php#L46
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
$this->client = $client;
$this->lockKey = md5(self::class . $name);
- $this->lockValue = Random::string(20);
+ $this->lockValue = Random::string(19);
$this->mutexName = $name;
$this->ttl = $ttl;
}
|
PHP 8.1-ubuntu-latest:
src/RedisMutex.php#L61
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
*
* @see https://redis.io/topics/distlock
*/
- public function acquire(int $timeout = 0) : bool
+ public function acquire(int $timeout = -1) : bool
{
return $this->retryAcquire($timeout, function () : bool {
if (!$this->isExpired() || $this->client->set($this->lockKey, $this->lockValue, 'EX', $this->ttl, 'NX') === null) {
|
PHP 8.1-ubuntu-latest:
src/RedisMutex.php#L61
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
*
* @see https://redis.io/topics/distlock
*/
- public function acquire(int $timeout = 0) : bool
+ public function acquire(int $timeout = 1) : bool
{
return $this->retryAcquire($timeout, function () : bool {
if (!$this->isExpired() || $this->client->set($this->lockKey, $this->lockValue, 'EX', $this->ttl, 'NX') === null) {
|