| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 3 | final class LogRef implements Stringable |
|
| 21 | { |
||
| 22 | 3 | private string $ref; |
|
| 23 | |||
| 24 | 3 | public function __construct(Throwable $e) |
|
| 28 | } |
||
| 29 | 1 | ||
| 30 | 1 | #[Override] |
|
| 31 | 1 | public function __toString(): string |
|
| 32 | 1 | { |
|
| 33 | 1 | return $this->ref; |
|
| 34 | 1 | } |
|
| 35 | 1 | ||
| 36 | public function log(Throwable $e, RouterMatch $request, AbstractAppMeta $appMeta): void |
||
| 44 | } |
||
| 45 | } |
||
| 46 |
If you suppress an error, we recommend checking for the error condition explicitly: