HH\invariant_callback_register

Pass a function that will be called if any invariant fails

Description

function invariant_callback_register(
  callable $callback,
)

The callback will be called with all the invariant parameters after the condition.

Parameters

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