1 | <?php namespace Spatie\CollectionMacros\Macros; |
||
6 | class ChunkBy |
||
7 | { |
||
8 | /* |
||
9 | * Separate a collection into chunks as long as the given callback returns true. |
||
10 | * |
||
11 | * @param callable $callback |
||
|
|||
12 | * @param bool $preserveKeys |
||
13 | * |
||
14 | * @return \Illuminate\Support\Collection |
||
15 | */ |
||
16 | public function chunkBy() |
||
24 | } |
||
25 |
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.