1 | <?php |
||
7 | class SectionBy |
||
8 | { |
||
9 | /** |
||
10 | * Splits a collection into sections grouped by a given key. |
||
11 | * |
||
12 | * @param mixed $key |
||
|
|||
13 | * @param bool $preserveKeys |
||
14 | * @param mixed $sectionKey |
||
15 | * @param mixed $itemsKey |
||
16 | * |
||
17 | * @return \Illuminate\Support\Collection |
||
18 | */ |
||
19 | public function sectionBy() |
||
42 | } |
||
43 |
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.