Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | 1 | public function compile(QueryBuilder $queryBuilder): string |
|
33 | { |
||
34 | 1 | $this->predicates = $queryBuilder->normalizePredicates($this->predicates); |
|
35 | 1 | $this->then = $queryBuilder->normalizeArgument($this->then); |
|
36 | 1 | $this->else = $queryBuilder->normalizeArgument($this->else); |
|
37 | |||
38 | 1 | return '(' . $queryBuilder->compilePredicates($this->predicates) . ')' . |
|
39 | 1 | ' ? ' . $this->then->compile($queryBuilder) . |
|
40 | 1 | ' : ' . $this->else->compile($queryBuilder); |
|
41 | } |
||
43 |
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..