diff options
Diffstat (limited to 'src/Exceptions/Handlers')
-rw-r--r-- | src/Exceptions/Handlers/Legacy.php | 3 | ||||
-rw-r--r-- | src/Exceptions/Handlers/LegacyDevelopment.php | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/Exceptions/Handlers/Legacy.php b/src/Exceptions/Handlers/Legacy.php index 39683f72..461dabe1 100644 --- a/src/Exceptions/Handlers/Legacy.php +++ b/src/Exceptions/Handlers/Legacy.php @@ -21,7 +21,8 @@ class Legacy implements HandlerInterface */ public function report(Throwable $e) { - error_log(sprintf('Exception: Code: %s, Message: %s, File: %s:%u, Trace: %s', + error_log(sprintf( + 'Exception: Code: %s, Message: %s, File: %s:%u, Trace: %s', $e->getCode(), $e->getMessage(), $this->stripBasePath($e->getFile()), diff --git a/src/Exceptions/Handlers/LegacyDevelopment.php b/src/Exceptions/Handlers/LegacyDevelopment.php index 86f86f4c..cfa4efa4 100644 --- a/src/Exceptions/Handlers/LegacyDevelopment.php +++ b/src/Exceptions/Handlers/LegacyDevelopment.php @@ -48,7 +48,7 @@ class LegacyDevelopment extends Legacy $return[] = [ 'file' => $path . ':' . $line, - $functionName => isset($trace['args']) ? $trace['args'] : null, + $functionName => $trace['args'] ?? null, ]; } |