Skip to content

Use dev version of Yii Data + increase psalm level to 1 #230

Use dev version of Yii Data + increase psalm level to 1

Use dev version of Yii Data + increase psalm level to 1 #230

Triggered via pull request November 21, 2023 12:04
@vjikvjik
opened #35
adapt
Status Success
Total duration 40s
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#L143
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#L147
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#L151
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#L161
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ } return $query; } - protected function getHandlerByOperation(string $operation) : QueryHandlerInterface + private function getHandlerByOperation(string $operation) : QueryHandlerInterface { if (!isset($this->filterHandlers[$operation])) { throw new RuntimeException(sprintf('Operation "%s" is not supported', $operation));
mutation / PHP 8.2-ubuntu-latest: src/AbstractQueryDataReader.php#L170
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::getOperator())->applyFilter($query, $this->filter);
mutation / PHP 8.2-ubuntu-latest: src/AbstractQueryDataReader.php#L180
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ } return $query; } - protected function applyHaving(QueryInterface $query) : QueryInterface + private function applyHaving(QueryInterface $query) : QueryInterface { if ($this->having !== null) { $query = $this->getHandlerByOperation($this->having::getOperator())->applyHaving($query, $this->having);
mutation / PHP 8.2-ubuntu-latest: src/AbstractQueryDataReader.php#L209
Escaped Mutant for Mutator "LessThan": --- Original +++ New @@ @@ */ public function withLimit(int $limit) : static { - if ($limit < 0) { + if ($limit <= 0) { throw new InvalidArgumentException('$limit must not be less than 0.'); } $new = clone $this;
mutation / PHP 8.2-ubuntu-latest: src/ColumnFormatterTrait.php#L21
Escaped Mutant for Mutator "IfNegation": --- Original +++ New @@ @@ */ private function setColumn(string|ExpressionInterface $column, ?string $table = null) : void { - if (is_string($column)) { + if (!is_string($column)) { if ($table) { $this->column = $table . '.' . $column; } else {
mutation / PHP 8.2-ubuntu-latest: src/Filter/CompareFilter.php#L33
Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ } public function withIgnoreNull(bool $ignoreNull = true) : static { - $new = clone $this; + $new = $this; $new->ignoreNull = $ignoreNull; return $new; }
mutation / PHP 8.2-ubuntu-latest: src/Filter/CompareFilter.php#L63
Escaped Mutant for Mutator "UnwrapArrayMap": --- Original +++ New @@ @@ } protected function formatValues(array $values) : array { - return array_map([$this, 'formatValue'], $values); + return $values; } public function toCriteriaArray() : array {