Change exceptions usage in paginator #717
Annotations
1 error and 2 warnings
Run roave infection.
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run roave infection.:
src/Paginator/OffsetPaginator.php#L97
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
}
public function withToken(?PageToken $token) : static
{
- $page = $token === null ? 1 : (int) $token->value;
+ $page = $token === null ? 2 : (int) $token->value;
if ($page < 1) {
throw new PaginatorException('Current page should be at least 1.');
}
|
Loading