Docs folder standardization and other fixes #259
Annotations
12 warnings
PHP 8.3-ubuntu-latest
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/.
|
PHP 8.3-ubuntu-latest
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/
|
PHP 8.3-ubuntu-latest
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/
|
PHP 8.3-ubuntu-latest
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/
|
PHP 8.3-ubuntu-latest:
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
|
PHP 8.3-ubuntu-latest:
src/Memcached.php#L128
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
$keys = $this->iterableToArray($keys);
$this->validateKeys($keys);
foreach ($this->cache->deleteMulti($keys) as $result) {
- if ($result === false) {
+ if ($result === true) {
return false;
}
}
|
PHP 8.3-ubuntu-latest:
src/Memcached.php#L166
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
$ttl = (new DateTime('@0'))->add($ttl)->getTimestamp();
}
$ttl = (int) $ttl;
- if ($ttl > 2592000) {
+ if ($ttl >= 2592000) {
return $ttl + time();
}
return $ttl > 0 ? $ttl : self::TTL_EXPIRED;
|
PHP 8.3-ubuntu-latest:
src/Memcached.php#L217
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
* @see https://www.php.net/manual/en/memcached.getserverlist.php
*/
foreach ($this->cache->getServerList() as $existingServer) {
- $existingServers["{$existingServer['host']}:{$existingServer['port']}"] = true;
+ $existingServers["{$existingServer['host']}:{$existingServer['port']}"] = false;
}
foreach ($servers as $server) {
if (!array_key_exists("{$server[0]}:{$server[1]}", $existingServers)) {
|
PHP 8.3-ubuntu-latest:
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
|
PHP 8.3-ubuntu-latest:
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
|
PHP 8.3-ubuntu-latest:
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
|
PHP 8.3-ubuntu-latest:
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);
+
}
}
|