Use dev version of Yii Data + increase psalm level to 1 #229
Annotations
10 warnings
Run roave infection.:
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);
|
Run roave infection.:
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);
|
Run roave infection.:
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);
|
Run roave infection.:
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));
|
Run roave infection.:
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);
|
Run roave infection.:
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);
|
Run roave infection.:
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;
|
Run roave infection.:
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 {
|
Run roave infection.:
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;
}
|
Run roave infection.:
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
{
|
The logs for this run have expired and are no longer available.
Loading