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