Conditions | 3 |
Paths | 3 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
19 | public function __construct(AST\Node $AST, $sqlWalker) |
||
20 | { |
||
21 | if ($AST instanceof AST\UpdateStatement) { |
||
22 | $this->sqlStatements = $sqlWalker->walkUpdateStatement($AST); |
||
|
|||
23 | } elseif ($AST instanceof AST\DeleteStatement) { |
||
24 | $this->sqlStatements = $sqlWalker->walkDeleteStatement($AST); |
||
25 | } |
||
36 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..