Skip to content

Update README.md

Update README.md #2

Triggered via push October 2, 2024 01:09
Status Success
Total duration 1m 20s
Artifacts

check.yml

on: push
Matrix: psalm
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
infection: src/Visitor/RecursiveTypeReplacer.php#L25
Escaped Mutant for Mutator "LogicalAnd": @@ @@ { $newMinType = $minType->accept($this); $newMaxType = $maxType->accept($this); - if ($newMinType === $minType && $newMaxType === $maxType) { + if ($newMinType === $minType || $newMaxType === $maxType) { return $type; } return types::intRange($newMinType, $newMaxType);
infection: src/Visitor/RecursiveTypeReplacer.php#L48
Escaped Mutant for Mutator "Identical": @@ @@ { $newMinType = $minType->accept($this); $newMaxType = $maxType->accept($this); - if ($newMinType === $minType && $newMaxType === $maxType) { + if ($newMinType !== $minType && $newMaxType === $maxType) { return $type; } return types::floatRange($newMinType, $newMaxType);
infection: src/Visitor/RecursiveTypeReplacer.php#L48
Escaped Mutant for Mutator "Identical": @@ @@ { $newMinType = $minType->accept($this); $newMaxType = $maxType->accept($this); - if ($newMinType === $minType && $newMaxType === $maxType) { + if ($newMinType === $minType && $newMaxType !== $maxType) { return $type; } return types::floatRange($newMinType, $newMaxType);
infection: src/Visitor/RecursiveTypeReplacer.php#L48
Escaped Mutant for Mutator "LogicalAnd": @@ @@ { $newMinType = $minType->accept($this); $newMaxType = $maxType->accept($this); - if ($newMinType === $minType && $newMaxType === $maxType) { + if ($newMinType === $minType || $newMaxType === $maxType) { return $type; } return types::floatRange($newMinType, $newMaxType);
infection: src/Visitor/RecursiveTypeReplacer.php#L48
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": @@ @@ { $newMinType = $minType->accept($this); $newMaxType = $maxType->accept($this); - if ($newMinType === $minType && $newMaxType === $maxType) { + if (!($newMinType === $minType) && !($newMaxType === $maxType)) { return $type; } return types::floatRange($newMinType, $newMaxType);
infection: src/Visitor/RecursiveTypeReplacer.php#L48
Escaped Mutant for Mutator "LogicalAndNegation": @@ @@ { $newMinType = $minType->accept($this); $newMaxType = $maxType->accept($this); - if ($newMinType === $minType && $newMaxType === $maxType) { + if (!($newMinType === $minType && $newMaxType === $maxType)) { return $type; } return types::floatRange($newMinType, $newMaxType);
infection: src/Visitor/RecursiveTypeReplacer.php#L83
Escaped Mutant for Mutator "Foreach_": @@ @@ $newValueType = $valueType->accept($this); $changed = $newValueType !== $valueType; $newElements = []; - foreach ($elements as $element) { + foreach ([] as $element) { $newElementType = $element->type->accept($this); if ($newElementType === $element->type) { $newElements[] = $element;
infection: src/Visitor/RecursiveTypeReplacer.php#L89
Escaped Mutant for Mutator "Continue_": @@ @@ $newElementType = $element->type->accept($this); if ($newElementType === $element->type) { $newElements[] = $element; - continue; + break; } $newElements[] = $element->with(type: $newElementType); $changed = true;
infection: src/Visitor/RecursiveTypeReplacer.php#L107
Escaped Mutant for Mutator "LogicalOr": @@ @@ { $newKeyType = $keyType->accept($this); $newValueType = $valueType->accept($this); - $changed = $newKeyType !== $keyType || $newValueType !== $valueType; + $changed = $newKeyType !== $keyType && $newValueType !== $valueType; $newElements = []; foreach ($elements as $key => $element) { $newElementType = $element->type->accept($this);
infection: src/Visitor/RecursiveTypeReplacer.php#L110
Escaped Mutant for Mutator "Foreach_": @@ @@ $newValueType = $valueType->accept($this); $changed = $newKeyType !== $keyType || $newValueType !== $valueType; $newElements = []; - foreach ($elements as $key => $element) { + foreach ([] as $key => $element) { $newElementType = $element->type->accept($this); if ($newElementType === $element->type) { $newElements[$key] = $element;