API / Minn\Support / Backtrace

Backtrace final class

Minn\Support\Backtrace · public/minn/src/Minn/Support/Backtrace.php · 32 lines

A call stack named as wp_debug_backtrace_summary names it (probe placeholders-a): Class->method, Class::method and function names; a hook's function with the hook named; an included file by its path with the given prefixes taken off, in order. Innermost first.

Constants and properties

privateHOOKS = array ( 0 => 'do_action', 1 => 'apply_filters', 2 => 'do_action_ref_array', 3 => 'apply_filters_ref_array', )
privateINCLUDES = array ( 0 => 'include', 1 => 'include_once', 2 => 'require', 3 => 'require_once', )

Public

staticsummary(array $frames, ?string $ignoreClass, int $skip, array $truncate): array#

The frames' names, after the first $skip.

$frameslist<array<string, mixed>>debug_backtrace()'s frames, innermost first
$truncatelist<string>path prefixes taken off an included file
@return list<string>