Update rector/rector requirement from ^0.15.2 to ^0.17.12 #390
Annotations
10 warnings
mutation / PHP 8.1-ubuntu-latest:
src/ArrayCache.php#L83
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function getMultiple(iterable $keys, mixed $default = null) : iterable
{
$keys = $this->iterableToArray($keys);
- /** @psalm-suppress RedundantCondition */
- $this->validateKeys($keys);
+
$results = [];
foreach ($keys as $key) {
/** @var mixed */
|
mutation / PHP 8.1-ubuntu-latest:
src/ArrayCache.php#L99
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);
+
/** @var mixed */
foreach ($values as $key => $value) {
$this->set((string) $key, $value, $ttl);
|
mutation / PHP 8.1-ubuntu-latest:
src/ArrayCache.php#L106
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
foreach ($values as $key => $value) {
$this->set((string) $key, $value, $ttl);
}
- return true;
+ return false;
}
public function deleteMultiple(iterable $keys) : bool
{
|
mutation / PHP 8.1-ubuntu-latest:
src/ArrayCache.php#L113
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function deleteMultiple(iterable $keys) : bool
{
$keys = $this->iterableToArray($keys);
- /** @psalm-suppress RedundantCondition */
- $this->validateKeys($keys);
+
foreach ($keys as $key) {
$this->delete($key);
}
|
mutation / PHP 8.1-ubuntu-latest:
src/ArrayCache.php#L119
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
foreach ($keys as $key) {
$this->delete($key);
}
- return true;
+ return false;
}
public function has(string $key) : bool
{
|
mutation / PHP 8.1-ubuntu-latest:
src/ArrayCache.php#L147
Escaped Mutant for Mutator "LessThanOrEqualTo":
--- Original
+++ New
@@ @@
if ($ttl === null) {
return self::EXPIRATION_INFINITY;
}
- if ($ttl <= 0) {
+ if ($ttl < 0) {
return self::EXPIRATION_EXPIRED;
}
return $ttl + time();
|
mutation / PHP 8.1-ubuntu-latest:
src/ArrayCache.php#L201
Escaped Mutant for Mutator "Foreach_":
--- Original
+++ New
@@ @@
private function validateKeys(array $keys) : void
{
/** @var mixed $key */
- foreach ($keys as $key) {
+ foreach (array() as $key) {
$this->validateKey($key);
}
}
|
mutation / PHP 8.1-ubuntu-latest:
src/ArrayCache.php#L202
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
/** @var mixed $key */
foreach ($keys as $key) {
- $this->validateKey($key);
+
}
}
private function validateKeysOfValues(array $values) : void
|
mutation / PHP 8.1-ubuntu-latest:
src/ArrayCache.php#L209
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
private function validateKeysOfValues(array $values) : void
{
$keys = array_map('\\strval', array_keys($values));
- $this->validateKeys($keys);
+
}
}
|
mutation / PHP 8.1-ubuntu-latest:
src/Cache.php#L73
Escaped Mutant for Mutator "OneZeroFloat":
--- Original
+++ New
@@ @@
{
return $this->psr;
}
- public function getOrSet(mixed $key, callable $callable, DateInterval|int|null $ttl = null, Dependency $dependency = null, float $beta = 1.0)
+ public function getOrSet(mixed $key, callable $callable, DateInterval|int|null $ttl = null, Dependency $dependency = null, float $beta = 0.0)
{
$key = $this->keyNormalizer->normalize($key);
/** @var mixed */
|