HH\invariant_callback_register

Description

function HH\invariant_callback_register(
  callable $callback,
)

Pass a function that will be called if any invariant fails. The callback will be called with all the invariant parameters after the condition.

Parameters

  • callable $callback - The function that will be called if your invariant fails.