Skip to content

fix socket timeout

fix socket timeout #8

Triggered via push April 11, 2024 15:31
Status Failure
Total duration 28s
Artifacts

main.yml

on: push
Matrix: Coding Standards
Matrix: Infection PHP
Matrix: PHPStan
Matrix: PHPUnit Tests
Fit to window
Zoom out
Zoom in

Annotations

1 error and 18 warnings
Infection PHP (8.3)
Process completed with exit code 1.
Coding Standards (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Coding Standards (8.3)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHPUnit Tests (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHPUnit Tests (8.3)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHPStan (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHPStan (8.3)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Infection PHP (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Infection PHP (8.3)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Infection PHP (8.3): src/Memcached.php#L50
Escaped Mutant for Mutator "UnwrapTrim": --- Original +++ New @@ @@ throw new ResponseErrorException('Cannot read header'); } if (strpos($header, 'VALUE ') === 0) { - [, , , $bytes] = explode(' ', trim($header)); + [, , , $bytes] = explode(' ', $header); if (!is_numeric($bytes)) { throw new ResponseErrorException('Cannot parse header'); }
Infection PHP (8.3): src/Memcached.php#L79
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ public function set(string $key, string $data, int $ttl = null): void { - self::validateKey($key); + if ($ttl === null) { $ttl = self::DEFAULT_TTL; }
Infection PHP (8.3): src/Memcached.php#L80
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ public function set(string $key, string $data, int $ttl = null): void { self::validateKey($key); - if ($ttl === null) { + if ($ttl !== null) { $ttl = self::DEFAULT_TTL; } $flags = 0;
Infection PHP (8.3): src/Memcached.php#L83
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ if ($ttl === null) { $ttl = self::DEFAULT_TTL; } - $flags = 0; + $flags = -1; $bytes = mb_strlen($data); $line = $this->command(sprintf("set %s %d %d %d\r\n%s", $key, $flags, $ttl, $bytes, $data))->current(); if ($line !== 'STORED') {
Infection PHP (8.3): src/Memcached.php#L84
Escaped Mutant for Mutator "MBString": --- Original +++ New @@ @@ $ttl = self::DEFAULT_TTL; } $flags = 0; - $bytes = mb_strlen($data); + $bytes = strlen($data); $line = $this->command(sprintf("set %s %d %d %d\r\n%s", $key, $flags, $ttl, $bytes, $data))->current(); if ($line !== 'STORED') { throw new MemcachedException('Data is not Stored, reason: ' . ($line ?: 'line is empty'));
Infection PHP (8.3): src/Memcached.php#L94
Escaped Mutant for Mutator "Ternary": --- Original +++ New @@ @@ $bytes = mb_strlen($data); $line = $this->command(sprintf("set %s %d %d %d\r\n%s", $key, $flags, $ttl, $bytes, $data))->current(); if ($line !== 'STORED') { - throw new MemcachedException('Data is not Stored, reason: ' . ($line ?: 'line is empty')); + throw new MemcachedException('Data is not Stored, reason: ' . ($line ? 'line is empty' : $line)); } } /**
Infection PHP (8.3): src/Memcached.php#L94
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ $bytes = mb_strlen($data); $line = $this->command(sprintf("set %s %d %d %d\r\n%s", $key, $flags, $ttl, $bytes, $data))->current(); if ($line !== 'STORED') { - throw new MemcachedException('Data is not Stored, reason: ' . ($line ?: 'line is empty')); + throw new MemcachedException(($line ?: 'line is empty') . 'Data is not Stored, reason: '); } } /**
Infection PHP (8.3): src/Memcached.php#L94
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ $bytes = mb_strlen($data); $line = $this->command(sprintf("set %s %d %d %d\r\n%s", $key, $flags, $ttl, $bytes, $data))->current(); if ($line !== 'STORED') { - throw new MemcachedException('Data is not Stored, reason: ' . ($line ?: 'line is empty')); + throw new MemcachedException($line ?: 'line is empty'); } } /**
Infection PHP (8.3): src/Memcached.php#L94
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ $bytes = mb_strlen($data); $line = $this->command(sprintf("set %s %d %d %d\r\n%s", $key, $flags, $ttl, $bytes, $data))->current(); if ($line !== 'STORED') { - throw new MemcachedException('Data is not Stored, reason: ' . ($line ?: 'line is empty')); + throw new MemcachedException('Data is not Stored, reason: '); } } /**
Infection PHP (8.3): src/Memcached.php#L105
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ public function delete(string $key): void { - self::validateKey($key); + $this->command(sprintf('delete %s noreply', $key), true)->current(); } /**