src/CarteBlanche/Library/Callback.php
protected function _executeCallback($fct, $args)
    {
        if (function_exists($fct)) {
            try {
                $response = call_user_func_array($fct, $args);
                return $response;
            } catch (\Exception $e) {
                throw new RuntimeException($e->getMessage());
            }
        }
        return isset($args[0]) ? $args[0] : null;
    }
protected function _executeCallback($fct, $args)
    {
        if (function_exists($fct)) {
            try {
                $response = call_user_func_array($fct, $args);
                return $response;
            } catch (\Exception $e) {
                throw new RuntimeException($e->getMessage());
            }
        }
        return isset($args[0]) ? $args[0] : null;
    }
Execution of one callback on a value

@param   string  $fct   The function name to execute
@param   array   $args  The arguments to pass to the function
@return  mixed   The result of the function execution on arguments
@throws  \CarteBlanche\Exception\RuntimeException in case of error