Gravity Forms parameters return 1

It’s not Gravity Forms, it’s ob_end_clean(), which just deletes the buffer and returns a boolean value. (In this case, true, which is getting expressed as 1.)

Is there a pressing reason to use the ob_* functions? The code would be more readable (and predictable) if it was something like this.

public function collectGFData($entry, $form ) {
    error_log("form was submitted");
    error_log("entry was " . print_r( $entry. 1) );
    error_log("form was " . print_r( $form, 1 ) );

    $formID = rgar( $entry, 'form_id' );
    $dateCreated = rgar( $entry, 'date_created' );
    error_log("date created testing was " . print_r( $dateCreated, 1 ) );
    error_log("form id testing was " . print_r( $formID, 1 ) );
}

…using print_r() instead of var_dump().

tech