| 1 | <?php namespace Spatie\CollectionMacros\Macros; |
||
| 6 | class SliceBefore |
||
| 7 | { |
||
| 8 | /* |
||
| 9 | * Slice a collection before a given callback is met into separate chunks |
||
| 10 | * |
||
| 11 | * @param callable $callback |
||
|
|
|||
| 12 | * @param bool $preserveKeys |
||
| 13 | * |
||
| 14 | * @return \Illuminate\Support\Collection |
||
| 15 | */ |
||
| 16 | public function sliceBefore() |
||
| 54 | } |
||
| 55 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.