From 99d7c3d733e2d7b7b77940400f7cc0378c79d8ef Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 24 May 2024 23:19:02 +0900 Subject: [PATCH] Fix warning when HTTP requests are made from outside of a class --- common/framework/HTTP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/framework/HTTP.php b/common/framework/HTTP.php index 985d458e0..51e0b79ce 100644 --- a/common/framework/HTTP.php +++ b/common/framework/HTTP.php @@ -301,7 +301,7 @@ class HTTP $next = $no + 1; if (isset($bt[$next])) { - $log['called_method'] = $bt[$next]['class'].$bt[$next]['type'].$bt[$next]['function']; + $log['called_method'] = ($bt[$next]['class'] ?? '') . ($bt[$next]['type'] ?? '') . ($bt[$next]['function'] ?? ''); $log['backtrace'] = array_slice($bt, $next, 1); } break;