I have been using:
assert_options (ASSERT_CALLBACK, function(string $file, int $line, ?string $assertion, string $description = null){
// my codes
}
However, assert_options has been deprecated as of PHP 8.3. What are other compatible alternatives to hook a function as default assert callback?
Bard has surfaced a good alternative: