Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
14 | class SingleTableDeleteUpdateExecutor extends AbstractSqlExecutor |
||
15 | { |
||
16 | /** |
||
17 | * @param \Doctrine\ORM\Query\SqlWalker $sqlWalker |
||
18 | */ |
||
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 | } |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * {@inheritDoc} |
||
30 | */ |
||
31 | public function execute(Connection $conn, array $params, array $types) |
||
34 | } |
||
35 | } |
||
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..