| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | final class LogRef implements Stringable |
||
| 21 | { |
||
| 22 | private string $ref; |
||
| 23 | |||
| 24 | public function __construct(Throwable $e) |
||
| 25 | { |
||
| 26 | // phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFallbackGlobalName |
||
| 27 | $this->ref = hash('crc32b', $e::class . $e->getMessage() . $e->getFile() . $e->getLine()); |
||
| 28 | } |
||
| 29 | |||
| 30 | #[Override] |
||
| 34 | } |
||
| 35 | |||
| 36 | public function log(Throwable $e, RouterMatch $request, AbstractAppMeta $appMeta): void |
||
| 46 |
If you suppress an error, we recommend checking for the error condition explicitly: