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);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)