1 | <?php |
||
16 | class InConditionBuilder extends \yii\db\conditions\InConditionBuilder |
||
17 | { |
||
18 | /** |
||
19 | * Method builds the raw SQL from the $expression that will not be additionally |
||
20 | * escaped or quoted. |
||
21 | * |
||
22 | * @param ExpressionInterface|InCondition $expression the expression to be built. |
||
23 | * @param array $params the binding parameters. |
||
24 | * @return string the raw SQL that will not be additionally escaped or quoted. |
||
25 | */ |
||
26 | public function build(ExpressionInterface $expression, array &$params = []) |
||
35 | |||
36 | /** |
||
37 | * Oracle DBMS does not support more than 1000 parameters in `IN` condition. |
||
38 | * This method splits long `IN` condition into series of smaller ones. |
||
39 | * |
||
40 | * @param ExpressionInterface|InCondition $condition the expression to be built. |
||
41 | * @param array $params the binding parameters. |
||
42 | * @return null|string null when split is not required. Otherwise - built SQL condition. |
||
43 | */ |
||
44 | protected function splitCondition(InCondition $condition, &$params) |
||
71 | } |
||
72 |
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.