| 1 | <?php |
||
| 23 | class Collection extends BaseCollection |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Get the route information for a given route. |
||
| 27 | * |
||
| 28 | * @param $route \Illuminate\Routing\Route |
||
| 29 | * @param $filter string |
||
| 30 | * @param $namespace string |
||
| 31 | * |
||
| 32 | * @return array |
||
|
|
|||
| 33 | */ |
||
| 34 | protected function getRouteInformation(Route $route, $filter, $namespace) |
||
| 55 | } |
||
| 56 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.If the return type contains the type array, this check recommends the use of a more specific type like
String[]orarray<String>.