Revert "Add TypedMap" #12
Annotations
1 error and 3 warnings
infection
Process completed with exit code 1.
|
infection:
src/Internal/ArrayMap.php#L48
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
}
protected function doPutAll(iterable $values): void
{
- if ($values instanceof self) {
+ if (false) {
$this->kvPairs = array_replace($this->kvPairs, $values->kvPairs);
return;
}
|
infection:
src/Internal/PerfectHasher.php#L113
Escaped Mutant for Mutator "AssignCoalesce":
@@ @@
return self::STRING_QUOTE . addcslashes($value, self::STRING_QUOTE) . self::STRING_QUOTE;
}
if (\is_object($value)) {
- return $this->objectHashes[$value] ??= $this->hashObject($value);
+ return $this->objectHashes[$value] = $this->hashObject($value);
}
if ($value === null) {
return self::NULL;
|
infection:
src/MutableMap.php#L189
Escaped Mutant for Mutator "ProtectedVisibility":
@@ @@
/**
* @param iterable<K, V> $values
*/
- protected function doPutAll(iterable $values): void
+ private function doPutAll(iterable $values): void
{
foreach ($values as $key => $value) {
$this->put($key, $value);
|