mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 12:47:39 +02:00
Remove conditional php version check for debug_backtrace legacy support (#1134)
This commit is contained in:
committed by
Jordi Boggiano
parent
61d906ff65
commit
3507f48edb
@@ -51,12 +51,7 @@ class IntrospectionProcessor
|
|||||||
return $record;
|
return $record;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
|
||||||
* 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);
|
|
||||||
|
|
||||||
// skip first since it's always the current method
|
// skip first since it's always the current method
|
||||||
array_shift($trace);
|
array_shift($trace);
|
||||||
|
Reference in New Issue
Block a user