| 1 | <?php  | 
            ||
| 7 | class GroupByModel  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * Group a collection by an Eloquent model.  | 
            ||
| 11 | *  | 
            ||
| 12 | * @param string|callable $callback  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 13 | * @param bool $preserveKeys  | 
            ||
| 14 | * @param mixed $modelKey  | 
            ||
| 15 | * @param mixed $itemsKey  | 
            ||
| 16 | *  | 
            ||
| 17 | * @return \Illuminate\Support\Collection  | 
            ||
| 18 | */  | 
            ||
| 19 | public function groupByModel()  | 
            ||
| 34 | }  | 
            ||
| 35 | 
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.