Commit efbef0b9 authored by Rob Mumford's avatar Rob Mumford Committed by Merlin Axel Rutz
Browse files

Issue #3217493 by rlmumford, J2: PHP 8 incompatibility on call_user_func_array()

parent 6e491f65
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -394,7 +394,7 @@ function template_preprocess_inline_entity_form_entity_table(array &$variables)
          $arguments = array_merge($arguments, $field['callback_arguments']);
        }

        $data = call_user_func_array($field['callback'], $arguments);
        $data = call_user_func_array($field['callback'], array_values($arguments));

        // Backward compatibility for callbacks that just provide a string not an array.
        if(!is_array($data)) {