| 1 | <?php |
||
| 10 | class ExitOp extends AbstractExpressionCompiler |
||
| 11 | { |
||
| 12 | protected $name = 'PhpParser\Node\Expr\Exit_'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * exit({expr}) |
||
| 16 | * |
||
| 17 | * @param \PhpParser\Node\Expr\Exit_ $expr |
||
| 18 | * @param Context $context |
||
| 19 | * @return CompiledExpression |
||
| 20 | */ |
||
| 21 | protected function compile($expr, Context $context) |
||
| 27 | } |
||
| 28 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: