From 3507f48edb359410f26b080b80b979773f96898f Mon Sep 17 00:00:00 2001 From: Luke Waite Date: Thu, 7 Jun 2018 13:22:49 -0400 Subject: [PATCH] Remove conditional php version check for debug_backtrace legacy support (#1134) --- src/Monolog/Processor/IntrospectionProcessor.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Monolog/Processor/IntrospectionProcessor.php b/src/Monolog/Processor/IntrospectionProcessor.php index 3a275293..e1b5d3a3 100644 --- a/src/Monolog/Processor/IntrospectionProcessor.php +++ b/src/Monolog/Processor/IntrospectionProcessor.php @@ -51,12 +51,7 @@ class IntrospectionProcessor return $record; } - /* - * http://php.net/manual/en/function.debug-backtrace.php - * As of 5.3.6, DEBUG_BACKTRACE_IGNORE_ARGS option was added. - * Any version less than 5.3.6 must use the DEBUG_BACKTRACE_IGNORE_ARGS constant value '2'. - */ - $trace = debug_backtrace((PHP_VERSION_ID < 50306) ? 2 : DEBUG_BACKTRACE_IGNORE_ARGS); + $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); // skip first since it's always the current method array_shift($trace);