Gravity Forms | Form Object is NULL [closed]

By default, the add_action function is only going to pass 1 parameter, but you can define how many do you have / need

$accepted_args (int) (optional) The number of arguments the hooked
function accepts. In WordPress 1.5.1+, hooked functions can take extra
arguments that are set when the matching do_action() or
apply_filters() call is run.

So change your code to this:

add_action('gform_confirmation', 'myCustom_gform_confirmation', 10, 4);