Update README.md #2
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;
|