| 1 | <?php |
||
| 11 | trait LoadModel |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param $modelName |
||
| 15 | * @param $id |
||
| 16 | * @param bool $createIfEmptyId |
||
| 17 | * @param bool $useCache |
||
| 18 | * @param int $cacheLifetime |
||
| 19 | * @param bool $throwException |
||
| 20 | * @return ActiveRecord|null |
||
|
|
|||
| 21 | * @throws NotFoundHttpException |
||
| 22 | */ |
||
| 23 | public static function loadModel( |
||
| 69 | } |
||
| 70 |
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.