Rest API v4_1 is not working with php 8.1 and 8.2

Thank you very much! We were using “related_id” instead of “related_ids” (without the “…s”)… Now it works fine without the fix!

I’ll clarify this in the PR, hope it helps others as well.