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