1 | <?php namespace Spatie\CollectionMacros\Macros; |
||
6 | class Paginate |
||
7 | { |
||
8 | /* |
||
9 | * Paginate the given collection |
||
10 | * |
||
11 | * @param int $perPage |
||
|
|||
12 | * @param int $total |
||
13 | * @param int $page |
||
14 | * @param string $pageName |
||
15 | * |
||
16 | * @return \Illuminate\Pagination\LengthAwarePaginator |
||
17 | */ |
||
18 | public function paginate() |
||
41 | } |
||
42 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.