Raise minimal PHP version to 8.1 (#42) #253
Annotations
10 warnings
mutation / PHP 8.3-ubuntu-latest:
src/AbstractQueryDataReader.php#L132
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.3-ubuntu-latest:
src/AbstractQueryDataReader.php#L132
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.3-ubuntu-latest:
src/AbstractQueryDataReader.php#L132
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.3-ubuntu-latest:
src/AbstractQueryDataReader.php#L136
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$this->count = count($this->data);
} else {
$query = $this->getPreparedQuery();
- $query->offset(null);
+
$query->limit(null);
$query->orderBy('');
/** @psalm-var non-negative-int */
|
mutation / PHP 8.3-ubuntu-latest:
src/AbstractQueryDataReader.php#L137
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
} else {
$query = $this->getPreparedQuery();
$query->offset(null);
- $query->limit(null);
+
$query->orderBy('');
/** @psalm-var non-negative-int */
$this->count = (int) $query->count($q);
|
mutation / PHP 8.3-ubuntu-latest:
src/AbstractQueryDataReader.php#L138
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$query = $this->getPreparedQuery();
$query->offset(null);
$query->limit(null);
- $query->orderBy('');
+
/** @psalm-var non-negative-int */
$this->count = (int) $query->count($q);
}
|
mutation / PHP 8.3-ubuntu-latest:
src/AbstractQueryDataReader.php#L141
Escaped Mutant for Mutator "CastInt":
--- Original
+++ New
@@ @@
$query->limit(null);
$query->orderBy('');
/** @psalm-var non-negative-int */
- $this->count = (int) $query->count($q);
+ $this->count = $query->count($q);
}
}
return $this->count;
|
mutation / PHP 8.3-ubuntu-latest:
src/AbstractQueryDataReader.php#L150
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.3-ubuntu-latest:
src/AbstractQueryDataReader.php#L154
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.3-ubuntu-latest:
src/AbstractQueryDataReader.php#L158
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);
|