| 1 | <?php |
||
| 19 | trait FromComponentTrait |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @param mixed $table |
||
| 23 | * @param string $alias |
||
|
|
|||
| 24 | * |
||
| 25 | * @return AbstractTable |
||
| 26 | */ |
||
| 27 | abstract public function addRootTable($table, $alias = null); |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param mixed $table |
||
| 31 | * @param string $alias |
||
| 32 | * |
||
| 33 | * @return AbstractTable |
||
| 34 | */ |
||
| 35 | 1 | public function from($table, $alias = null) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param mixed $table |
||
| 42 | * @param string $alias |
||
| 43 | * |
||
| 44 | * @return AbstractTable |
||
| 45 | */ |
||
| 46 | 1 | public function addFrom($table, $alias = null) |
|
| 50 | } |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.