HH\invariant_violation

Description

function HH\invariant_violation(
  string $format_str,
  ...$args,
): void

Call this when one of your invariants has been violated. It calls the function you registered with invariant_callback_register and then throws an InvariantException

Parameters

  • string $format_str - The string that will be displayed when your invariant fails.
  • ...$args - Actual values to placeholders in your format string.