1 | <?php |
||
12 | class QueryExpressionBuilder implements ExpressionBuilderInterface |
||
13 | { |
||
14 | use ExpressionBuilderTrait; |
||
15 | |||
16 | /** |
||
17 | * Method builds the raw SQL from the $expression that will not be additionally |
||
18 | * escaped or quoted. |
||
19 | * |
||
20 | * @param ExpressionInterface|Query $expression the expression to be built. |
||
21 | * @param array $params the binding parameters. |
||
22 | * @return string the raw SQL that will not be additionally escaped or quoted. |
||
23 | */ |
||
24 | 50 | public function build(ExpressionInterface $expression, array &$params = []) |
|
30 | } |
||
31 |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.