Skip to content

Update rector/rector requirement from ^0.18.10 to ^0.19.0 #243

Update rector/rector requirement from ^0.18.10 to ^0.19.0

Update rector/rector requirement from ^0.18.10 to ^0.19.0 #243

Triggered via pull request January 9, 2024 09:09
Status Success
Total duration 1m 54s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
mutation / PHP 8.2-ubuntu-latest: src/AbstractQueryDataReader.php#L128
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ { if ($this->count === null) { $q = $this->countParam ?? '*'; - if ($q === '*' && is_array($this->data) && !$this->limit && !$this->offset) { + if ($q !== '*' && is_array($this->data) && !$this->limit && !$this->offset) { $this->count = count($this->data); } else { $query = $this->getPreparedQuery();
mutation / PHP 8.2-ubuntu-latest: src/AbstractQueryDataReader.php#L128
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ { if ($this->count === null) { $q = $this->countParam ?? '*'; - if ($q === '*' && is_array($this->data) && !$this->limit && !$this->offset) { + if ($q === '*' && is_array($this->data) && $this->limit && !$this->offset) { $this->count = count($this->data); } else { $query = $this->getPreparedQuery();
mutation / PHP 8.2-ubuntu-latest: src/AbstractQueryDataReader.php#L128
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ { if ($this->count === null) { $q = $this->countParam ?? '*'; - if ($q === '*' && is_array($this->data) && !$this->limit && !$this->offset) { + if ($q === '*' && is_array($this->data) && !$this->limit && $this->offset) { $this->count = count($this->data); } else { $query = $this->getPreparedQuery();
mutation / PHP 8.2-ubuntu-latest: src/AbstractQueryDataReader.php#L132
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->count = count($this->data); } else { $query = $this->getPreparedQuery(); - $query->offset(null); + $query->limit(null); $query->orderBy(''); $this->count = (int) $query->count($q);
mutation / PHP 8.2-ubuntu-latest: src/AbstractQueryDataReader.php#L133
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } else { $query = $this->getPreparedQuery(); $query->offset(null); - $query->limit(null); + $query->orderBy(''); $this->count = (int) $query->count($q); }
mutation / PHP 8.2-ubuntu-latest: src/AbstractQueryDataReader.php#L134
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $query = $this->getPreparedQuery(); $query->offset(null); $query->limit(null); - $query->orderBy(''); + $this->count = (int) $query->count($q); } }
mutation / PHP 8.2-ubuntu-latest: src/AbstractQueryDataReader.php#L145
Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ } public function getPreparedQuery() : QueryInterface { - $query = $this->applyFilter(clone $this->query); + $query = $this->applyFilter($this->query); $query = $this->applyHaving($query); if ($this->limit) { $query->limit($this->limit);
mutation / PHP 8.2-ubuntu-latest: src/AbstractQueryDataReader.php#L149
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $query = $this->applyFilter(clone $this->query); $query = $this->applyHaving($query); if ($this->limit) { - $query->limit($this->limit); + } if ($this->offset) { $query->offset($this->offset);
mutation / PHP 8.2-ubuntu-latest: src/AbstractQueryDataReader.php#L153
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $query->limit($this->limit); } if ($this->offset) { - $query->offset($this->offset); + } if ($criteria = $this->sort?->getCriteria()) { $query->addOrderBy($criteria);
mutation / PHP 8.2-ubuntu-latest: src/AbstractQueryDataReader.php#L176
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ } return $this->filterHandlers[$operation]; } - protected function applyFilter(QueryInterface $query) : QueryInterface + private function applyFilter(QueryInterface $query) : QueryInterface { if ($this->filter !== null) { $query = $this->getHandlerByOperation($this->filter)->applyFilter($query, $this->filter);