Rest API v4_1 is not working with php 8.1 and 8.2

Some instructions here:

Error creating Activities relationship form module builder - #4 by pgr

That’s the basic thing, editing a single file directly on Github. The proper thing for more complex scenarios would be to set a local git fork and work from there.