Issues (40)

src/ResultPaginator.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Zenstruck\Porpaginas;
4
5
/**
6
 * @author Kevin Bond <[email protected]>
7
 */
8
trait ResultPaginator
9
{
10 7
    public function paginate(int $page = 1, int $limit = Pager::DEFAULT_LIMIT): Pager
11
    {
12 7
        return new Pager($this, $page, $limit);
0 ignored issues
show
$this of type Zenstruck\Porpaginas\ResultPaginator is incompatible with the type Zenstruck\Porpaginas\Result expected by parameter $result of Zenstruck\Porpaginas\Pager::__construct(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

12
        return new Pager(/** @scrutinizer ignore-type */ $this, $page, $limit);
Loading history...
13
    }
14
}
15