1 | <?php namespace Spatie\CollectionMacros\Macros; |
||
6 | class EachCons |
||
7 | { |
||
8 | /* |
||
9 | * Get the consecutive values in the collection defined by the given chunk size. |
||
10 | * |
||
11 | * @param int $chunkSize |
||
|
|||
12 | * @param bool $preserveKeys |
||
13 | * |
||
14 | * @return \Illuminate\Support\Collection |
||
15 | */ |
||
16 | public function eachCons() |
||
29 | } |
||
30 |
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.