Docs folder standardization and other fixes #258
Annotations
11 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2.3.4, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2.3.4, 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/
|
Checkout
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Checkout
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Run infection:
src/Memcached.php#L118
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function setMultiple(iterable $values, null|int|DateInterval $ttl = null) : bool
{
$values = $this->iterableToArray($values);
- $this->validateKeysOfValues($values);
+
return $this->cache->setMulti($values, $this->normalizeTtl($ttl));
}
public function deleteMultiple(iterable $keys) : bool
|
Run infection:
src/Memcached.php#L128
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
$keys = $this->iterableToArray($keys);
$this->validateKeys($keys);
foreach ($this->cache->deleteMulti($keys) as $result) {
- if ($result === false) {
+ if ($result !== false) {
return false;
}
}
|
Run infection:
src/Memcached.php#L133
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
return false;
}
}
- return true;
+ return false;
}
public function has(string $key) : bool
{
|
Run infection:
src/Memcached.php#L253
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$normalized = [];
foreach ($servers as $server) {
if (!is_array($server) || !isset($server['host'], $server['port']) || !is_string($server['host']) || !is_int($server['port']) || isset($server['weight']) && !is_int($server['weight'])) {
- throw new InvalidArgumentException('Each entry in servers parameter is supposed to be an array' . ' containing hostname (string), port (int), and, optionally, weight (int) of the server.');
+ throw new InvalidArgumentException(' containing hostname (string), port (int), and, optionally, weight (int) of the server.' . 'Each entry in servers parameter is supposed to be an array');
}
/**
* @psalm-var array{host:string,port:int,weight?:int} $server Need for PHP 8.0
|
Run infection:
src/Memcached.php#L253
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$normalized = [];
foreach ($servers as $server) {
if (!is_array($server) || !isset($server['host'], $server['port']) || !is_string($server['host']) || !is_int($server['port']) || isset($server['weight']) && !is_int($server['weight'])) {
- throw new InvalidArgumentException('Each entry in servers parameter is supposed to be an array' . ' containing hostname (string), port (int), and, optionally, weight (int) of the server.');
+ throw new InvalidArgumentException(' containing hostname (string), port (int), and, optionally, weight (int) of the server.');
}
/**
* @psalm-var array{host:string,port:int,weight?:int} $server Need for PHP 8.0
|
Run infection:
src/Memcached.php#L253
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$normalized = [];
foreach ($servers as $server) {
if (!is_array($server) || !isset($server['host'], $server['port']) || !is_string($server['host']) || !is_int($server['port']) || isset($server['weight']) && !is_int($server['weight'])) {
- throw new InvalidArgumentException('Each entry in servers parameter is supposed to be an array' . ' containing hostname (string), port (int), and, optionally, weight (int) of the server.');
+ throw new InvalidArgumentException('Each entry in servers parameter is supposed to be an array');
}
/**
* @psalm-var array{host:string,port:int,weight?:int} $server Need for PHP 8.0
|
Run infection:
src/Memcached.php#L287
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
private function validateKeysOfValues(array $values) : void
{
$keys = array_map('\\strval', array_keys($values));
- $this->validateKeys($keys);
+
}
}
|
Loading