Automattic\WooCommerce\Internal\Admin\BlockTemplates
BlockTemplateLogger::format_exception_trace
Format an exception trace for logging.
Method of the class: BlockTemplateLogger{}
No Hooks.
Returns
null
. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->format_exception_trace( $trace ): array;
- $trace(array) (required)
- Exception trace to format.
BlockTemplateLogger::format_exception_trace() BlockTemplateLogger::format exception trace code WC 9.9.5
private function format_exception_trace( array $trace ): array { $formatted_trace = array(); foreach ( $trace as $source ) { $formatted_trace[] = "{$source['file']}: {$source['line']}"; } return $formatted_trace; }