initial release #4
Annotations
6 warnings
PHP 8.3 test on ubuntu-latest:
src/Map.php#L70
Escaped Mutant for Mutator "YieldValue":
--- Original
+++ New
@@ @@
foreach ($this->keys as $key) {
/** @var string|int $lookup */
$lookup = $this->lookupKey($key);
- (yield $key => $this->values[$lookup]);
+ (yield $this->values[$lookup]);
}
}
/**
|
PHP 8.3 test on ubuntu-latest:
src/Map.php#L182
Escaped Mutant for Mutator "Decrement":
--- Original
+++ New
@@ @@
throw new OutOfBoundsException((string) message('Key `%key%` not found', key: strval($item)));
}
unset($this->keys[$lookup], $this->values[$lookup]);
- $this->count--;
+ $this->count++;
}
$this->keys = array_values($this->keys);
// @infection-ignore-all
|
PHP 8.1 test on ubuntu-latest:
src/Map.php#L70
Escaped Mutant for Mutator "YieldValue":
--- Original
+++ New
@@ @@
foreach ($this->keys as $key) {
/** @var string|int $lookup */
$lookup = $this->lookupKey($key);
- (yield $key => $this->values[$lookup]);
+ (yield $this->values[$lookup]);
}
}
/**
|
PHP 8.1 test on ubuntu-latest:
src/Map.php#L182
Escaped Mutant for Mutator "Decrement":
--- Original
+++ New
@@ @@
throw new OutOfBoundsException((string) message('Key `%key%` not found', key: strval($item)));
}
unset($this->keys[$lookup], $this->values[$lookup]);
- $this->count--;
+ $this->count++;
}
$this->keys = array_values($this->keys);
// @infection-ignore-all
|
PHP 8.2 test on ubuntu-latest:
src/Map.php#L70
Escaped Mutant for Mutator "YieldValue":
--- Original
+++ New
@@ @@
foreach ($this->keys as $key) {
/** @var string|int $lookup */
$lookup = $this->lookupKey($key);
- (yield $key => $this->values[$lookup]);
+ (yield $this->values[$lookup]);
}
}
/**
|
PHP 8.2 test on ubuntu-latest:
src/Map.php#L182
Escaped Mutant for Mutator "Decrement":
--- Original
+++ New
@@ @@
throw new OutOfBoundsException((string) message('Key `%key%` not found', key: strval($item)));
}
unset($this->keys[$lookup], $this->values[$lookup]);
- $this->count--;
+ $this->count++;
}
$this->keys = array_values($this->keys);
// @infection-ignore-all
|