Rest API v4_1 is not working with my new setup i.e. php 8.0, SuiteCRM 7.13

That seems to solve it! I can successfully run the API call between Mautic and SuiteCRM with this line modified. Looks it’s it’s ChatGPT for the win!

@pgr, if you think that makes sense, let me know and I’ll put in a PR. (this is a little more complex PHP than I’m comfortable with and I don’t totally understand the issue, other than this seems to make it work).

I think that with call_user_function_array it’s expecting $data to be an indexed array when it’s an associative array. (PHP 8 change). So outputting it without this function allows it to be either an associative or an indexed array which is more flexible and avoids the error. (I think?). They syntax is just kind of new to me.

I’m also not sure if this is specific to my API call from Mautic, or all API calls?