| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public static function withLocation(\Throwable $e, string $file, int $line): \Throwable |
||
| 28 | { |
||
| 29 | $fileProperty = new \ReflectionProperty($e, 'file'); |
||
| 30 | $fileProperty->setAccessible(true); |
||
| 31 | $fileProperty->setValue($e, $file); |
||
| 32 | |||
| 33 | $lineProperty = new \ReflectionProperty($e, 'line'); |
||
| 34 | $lineProperty->setAccessible(true); |
||
| 35 | $lineProperty->setValue($e, $line); |
||
| 36 | |||
| 37 | return $e; |
||
| 38 | } |
||
| 39 | } |