General use of the function call_user_func() instead of deprecated syntax