Skip to content

Add php 8.3 support #70

Add php 8.3 support

Add php 8.3 support #70

Triggered via push March 12, 2024 15:07
Status Success
Total duration 1m 3s
Artifacts

infection.yml

on: push
Matrix: infection
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
infection (8.3, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
infection (8.3, 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.3, 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.3, 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.3, 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.3, ubuntu-latest): src/Adapters/EloquentQueryBuilder.php#L80
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} ?"; } }
infection (8.3, ubuntu-latest): src/Adapters/SimpleQueryParser.php#L96
Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ } foreach ($values as $value) { if ($value === '') { - continue; + break; } if ($value[0] === '-') { $value = substr($value, 1);
infection (8.3, ubuntu-latest): src/Adapters/SimpleQueryParser.php#L130
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ $appliedCriterias = new CriteriaCollection(); $values = $this->getValues($query->getString($this->keywordFields)); if (is_string($values)) { - $values = [$values]; + $values = []; } foreach ($values as $value) { if ($value === '') {
infection (8.3, ubuntu-latest): src/Adapters/SimpleQueryParser.php#L135
Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ } foreach ($values as $value) { if ($value === '') { - continue; + break; } if (!$allowdCriterias->hasAllowField($value)) { if ($this->skipForbiddenCriterias) {
infection (8.3, ubuntu-latest): src/CriteriaCollection.php#L122
Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ } public function merge(self ...$criteriaCollections) : self { - $instance = clone $this; + $instance = $this; foreach ($criteriaCollections as $criteriaCollection) { $instance->sorts = array_merge($instance->sorts, $criteriaCollection->sorts); $instance->filters = array_merge($instance->filters, $criteriaCollection->filters);
infection (8.3, ubuntu-latest): src/CriteriaCollection.php#L127
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ foreach ($criteriaCollections as $criteriaCollection) { $instance->sorts = array_merge($instance->sorts, $criteriaCollection->sorts); $instance->filters = array_merge($instance->filters, $criteriaCollection->filters); - $instance->selectFields = array_merge($instance->selectFields, $criteriaCollection->selectFields); + $instance->selectFields = $criteriaCollection->selectFields; } return $instance; }