| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 20 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 19 | protected function getExceptionFromContext(array $context)  | 
            ||
| 20 |     { | 
            ||
| 21 | $exception = $context['exception'] ?? null;  | 
            ||
| 22 | |||
| 23 |         if ($exception instanceof \Exception) { | 
            ||
| 24 | return $exception;  | 
            ||
| 25 | }  | 
            ||
| 26 | |||
| 27 |         if ($exception instanceof \Error) { | 
            ||
| 28 | return new \ErrorException(  | 
            ||
| 29 | $exception->getMessage(),  | 
            ||
| 30 | 0,  | 
            ||
| 31 | $exception->getCode(),  | 
            ||
| 32 | $exception->getFile(),  | 
            ||
| 33 | $exception->getLine()  | 
            ||
| 34 | );  | 
            ||
| 35 | }  | 
            ||
| 36 | |||
| 37 | return null;  | 
            ||
| 38 | }  | 
            ||
| 39 | }  | 
            ||
| 40 |