CRM query from Outlook fails

I’d be happy to do a PR, I think it needs some expert discussion though. I had some help from ChatGPT to fix this for me and it’s a little advanced for my PHP skills. It totally fixes my problem, but not 100% it’s the right fix.

There was also some discussion that this change is not necessary and that a change to the actual call is necessary…Rest API v4_1 is not working with php 8.1 and 8.2 - #15 by blqt

My use case was Mautic integration with SutieCRM and this code change avoided the PHP error and solved the problem for me, other users have reported back it solves it for them.

I’d love your input! If you think for sure this needs to be changed in the core, I’ll do the PR.