Update README.md #66
Annotations
5 warnings
infection (8.1, ubuntu-latest):
src/Adapters/DoctrineQueryBuilder.php#L31
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
{
// Reset `SELECT *`
$preSelects = $this->builder->getQueryPart('select');
- if (is_array($preSelects) && count($preSelects) === 1 && current($preSelects) === '*') {
+ if ((is_array($preSelects) || count($preSelects) === 1) && current($preSelects) === '*') {
$this->builder->resetQueryPart('select');
}
$this->builder->addSelect(...$selects);
|
infection (8.1, ubuntu-latest):
src/Adapters/DoctrineQueryBuilder.php#L97
Escaped Mutant for Mutator "MatchArmRemoval":
--- Original
+++ New
@@ @@
return match ($where->operator) {
Operator::Equal => $this->builder->expr()->isNull($where->column),
Operator::NotEqual => $this->builder->expr()->isNotNull($where->column),
- default => throw ConditionException::invalidOperatorForNullableField($where->operator),
};
}
return match ($where->operator) {
|
infection (8.1, ubuntu-latest):
src/Adapters/DoctrineQueryBuilder.php#L104
Escaped Mutant for Mutator "MatchArmRemoval":
--- Original
+++ New
@@ @@
}
return match ($where->operator) {
Operator::Equal => $this->builder->expr()->eq($where->column, ":{$where->column}"),
- Operator::NotEqual => $this->builder->expr()->neq($where->column, ":{$where->column}"),
Operator::GreaterThen => $this->builder->expr()->gt($where->column, ":{$where->column}"),
Operator::GreaterThenEqual => $this->builder->expr()->gte($where->column, ":{$where->column}"),
Operator::LessThan => $this->builder->expr()->lt($where->column, ":{$where->column}"),
|
infection (8.1, ubuntu-latest):
src/Adapters/DoctrineQueryBuilder.php#L104
Escaped Mutant for Mutator "MatchArmRemoval":
--- Original
+++ New
@@ @@
Operator::LessThan => $this->builder->expr()->lt($where->column, ":{$where->column}"),
Operator::LessThanEqual => $this->builder->expr()->lte($where->column, ":{$where->column}"),
Operator::Like => $this->builder->expr()->like($where->column, ":{$where->column}"),
- Operator::NotLike => $this->builder->expr()->notLike($where->column, ":{$where->column}"),
};
}
}
|
infection (8.1, ubuntu-latest):
src/Adapters/EloquentQueryBuilder.php#L78
Escaped Mutant for Mutator "MatchArmRemoval":
--- Original
+++ New
@@ @@
return match ($where->operator) {
Operator::Equal => "{$where->column} is null",
Operator::NotEqual => "{$where->column} is not null",
- default => throw ConditionException::invalidOperatorForNullableField($where->operator),
};
}
return "{$where->column} {$where->operator->value} ?";
}
}
|