1 | <?php |
||
23 | trait QueryComponentTrait |
||
24 | { |
||
25 | /** |
||
26 | * @return AbstractBuilder |
||
27 | */ |
||
28 | abstract public function getQueryBuilder(); |
||
29 | |||
30 | /** |
||
31 | * @return QueryCompilerInterface |
||
32 | */ |
||
33 | abstract public function getQueryCompiler(); |
||
34 | |||
35 | /** |
||
36 | * @return ParameterManagerInterface |
||
37 | */ |
||
38 | abstract public function getParameterManager(); |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | 27 | public function buildSQL() |
|
47 | |||
48 | /** |
||
49 | * @param ConnectionInterface $connection |
||
|
|||
50 | * |
||
51 | * @return Query |
||
52 | */ |
||
53 | 13 | public function buildQuery(ConnectionInterface $connection = null) |
|
61 | } |
This check looks for
@param
annotations 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.