| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 11 | protected function compile($expr, Context $context) |
|
| 22 | { |
||
| 23 | 11 | $compiledExpression = $context->getExpressionCompiler()->compile($expr->expr); |
|
| 24 | |||
| 25 | 11 | if ($compiledExpression->isTypeKnown()) { |
|
| 26 | 10 | return CompiledExpression::fromZvalValue( |
|
| 27 | 10 | !$compiledExpression->getValue() |
|
| 28 | 10 | ); |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | return new CompiledExpression(); |
|
| 32 | } |
||
| 33 | } |
||
| 34 |