Add psalm types for closures #614
Annotations
10 warnings
mutation / PHP 8.4-ubuntu-latest:
src/BaseListView.php#L173
Escaped Mutant for Mutator "CloneRemoval":
@@ @@
}
final public function ignoreMissingPage(bool $enabled): static
{
- $new = clone $this;
+ $new = $this;
$new->ignoreMissingPage = $enabled;
return $new;
}
|
mutation / PHP 8.4-ubuntu-latest:
src/BaseListView.php#L221
Escaped Mutant for Mutator "CloneRemoval":
@@ @@
}
final public function urlParameterProvider(?UrlParameterProviderInterface $provider): static
{
- $new = clone $this;
+ $new = $this;
$new->urlParameterProvider = $provider;
return $new;
}
|
mutation / PHP 8.4-ubuntu-latest:
src/BaseListView.php#L320
Escaped Mutant for Mutator "ProtectedVisibility":
@@ @@
*
* @psalm-return list{FilterInterface[]|null,ValidationResult}
*/
- protected function makeFilters(): array
+ private function makeFilters(): array
{
return [[], new ValidationResult()];
}
|
mutation / PHP 8.4-ubuntu-latest:
src/BaseListView.php#L431
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
@@ @@
$dataReader = $dataReader->withToken(PageToken::previous($previousPage));
}
}
- if (!empty($sort) && $dataReader->isSortable()) {
+ if (!empty($sort) && !$dataReader->isSortable()) {
$sortObject = $dataReader->getSort();
if ($sortObject !== null) {
$order = OrderHelper::stringToArray($sort);
|
mutation / PHP 8.4-ubuntu-latest:
src/BaseListView.php#L446
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
$dataReader = $dataReader->withSort($sortObject->withOrder($this->prepareOrder($order)));
}
}
- if (!empty($filters) && $dataReader->isFilterable()) {
+ if (!empty($filters) || $dataReader->isFilterable()) {
$dataReader = $dataReader->withFilter(new All(...$filters));
}
return $dataReader;
|
mutation / PHP 8.4-ubuntu-latest:
src/BaseListView.php#L446
Escaped Mutant for Mutator "LogicalAndNegation":
@@ @@
$dataReader = $dataReader->withSort($sortObject->withOrder($this->prepareOrder($order)));
}
}
- if (!empty($filters) && $dataReader->isFilterable()) {
+ if (!(!empty($filters) && $dataReader->isFilterable())) {
$dataReader = $dataReader->withFilter(new All(...$filters));
}
return $dataReader;
|
mutation / PHP 8.4-ubuntu-latest:
src/BaseListView.php#L446
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
@@ @@
$dataReader = $dataReader->withSort($sortObject->withOrder($this->prepareOrder($order)));
}
}
- if (!empty($filters) && $dataReader->isFilterable()) {
+ if (!empty($filters) && !$dataReader->isFilterable()) {
$dataReader = $dataReader->withFilter(new All(...$filters));
}
return $dataReader;
|
mutation / PHP 8.4-ubuntu-latest:
src/BaseListView.php#L581
Escaped Mutant for Mutator "CloneRemoval":
@@ @@
*/
public function offsetPaginationConfig(array $config): static
{
- $new = clone $this;
+ $new = $this;
$new->offsetPaginationConfig = $config;
return $new;
}
|
mutation / PHP 8.4-ubuntu-latest:
src/BaseListView.php#L594
Escaped Mutant for Mutator "CloneRemoval":
@@ @@
*/
public function keysetPaginationConfig(array $config): static
{
- $new = clone $this;
+ $new = $this;
$new->keysetPaginationConfig = $config;
return $new;
}
|
mutation / PHP 8.4-ubuntu-latest:
src/BaseListView.php#L930
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
// The page number (1-based) current being displayed
$currentPage = $dataReader->getCurrentPage();
// The starting row number (1-based) currently being displayed
- $begin = ($currentPage - 1) * $dataReader->getPageSize() + 1;
+ $begin = ($currentPage - 0) * $dataReader->getPageSize() + 1;
// The number of rows currently being displayed
$count = $dataReader->getCurrentPageSize();
// The ending row number (1-based) currently being displayed
|