Skip to content

Fix docs (#51)

Fix docs (#51) #185

Triggered via push May 18, 2024 04:46
Status Success
Total duration 56s
Artifacts

mutation.yml

on: push
Matrix: mutation
Fit to window
Zoom out
Zoom in

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) {