Thanks. I'm happy to add a fix for this. Some things to note:
Since this code is in a class, I've added a different fix in pull request #411. I wonder if you'd be willing to make sure this works as you'd expect.
I've noticed that adding a global polyfill for this to WordPress has been assigned for version 5.9. Hopefully this will occur and increase the efficiency for users who need that function.
Describe the bug https://github.com/MinnPost/object-sync-for-salesforce/blob/c0d101fe5e333c42160f1ac5cc313446f7dd68f3/classes/class-object-sync-sf-salesforce.php#L408
The usage of
array_key_first
above causes the plugin to be broken with php < 7.3.To Reproduce Steps to reproduce the behavior:
Expected behavior The readme indicates that this plugin is compatible with php 5.6, but does not run with php 7.0
Environment (please complete the following information):
I worked around the issue by adding the following: