Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace Spatie\CollectionMacros\Macros; |
||
16 | public function chunkBy() |
||
17 | { |
||
18 | return function ($callback, bool $preserveKeys = false): Collection { |
||
19 | return $this->sliceBefore(function ($item, $prevItem) use ($callback) { |
||
20 | return $callback($item) !== $callback($prevItem); |
||
21 | }, $preserveKeys); |
||
22 | }; |
||
23 | } |
||
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.