| 1 | <?php |
||
| 4 | trait CollectionSorterTrait |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * @return $this |
||
|
|
|||
| 8 | */ |
||
| 9 | public function reindex() |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param callable $callback |
||
| 16 | * @return $this |
||
| 17 | */ |
||
| 18 | public function sort(callable $callback) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param callable $callback |
||
| 27 | * @return $this[] |
||
| 28 | */ |
||
| 29 | public function groupBy(callable $callback) |
||
| 41 | } |
||
| 42 |
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.