HH\set_frame_metadata

Attach metadata to the caller's stack frame

Description

namespace HH;

function set_frame_metadata(
  mixed $metadata,
): void;

The metadata can be retrieved using debug_backtrace(DEBUG_BACKTRACE_PROVIDE_METADATA).

Parameters

  • mixed $metadata