From 3474cc484072e5fad61bc7ae05ae1b32ebe33a58 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Thu, 10 Oct 2024 19:37:00 +0000 Subject: [PATCH] - Added Http Method --- src/Util/ExceptionHandler.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Util/ExceptionHandler.php b/src/Util/ExceptionHandler.php index 3c0ffb0..a076306 100644 --- a/src/Util/ExceptionHandler.php +++ b/src/Util/ExceptionHandler.php @@ -30,6 +30,7 @@ class ExceptionHandler { 'type' => $ex::class, 'message' => $ex->getMessage(), 'url' => ( ( 'on' === $serverData['HTTPS'] ) ? 'https' : 'http' ) . '://' . $serverData['HTTP_HOST'] . $serverData["REQUEST_URI"], + 'http_method' => $serverData['HTTP_X_HTTP_METHOD'] ?? $serverData['REQUEST_METHOD'] ?? null, 'backtrace' => json_encode($ex->getTrace()), 'backtrace_string' => $ex->getTraceAsString(), 'source' => ( new SourceCodeFormatter() )->generateFromException($ex),