aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--inc/Debug/DebugHelper.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/inc/Debug/DebugHelper.php b/inc/Debug/DebugHelper.php
index 74dfa9420..09ff76b0f 100644
--- a/inc/Debug/DebugHelper.php
+++ b/inc/Debug/DebugHelper.php
@@ -41,8 +41,12 @@ class DebugHelper
self::triggerDeprecationEvent(
$backtrace,
$alternative,
- trim($self['class'] . '::' . $self['function'] . '()', ':'),
- trim($call['class'] . '::' . $call['function'] . '()', ':'),
+ trim(
+ (!empty($self['class']) ? ($self['class'] . '::') : '') .
+ $self['function'] . '()', ':'),
+ trim(
+ (!empty($call['class']) ? ($call['class'] . '::') : '') .
+ $call['function'] . '()', ':'),
$call['file'],
$call['line']
);