MinnPost / object-sync-for-salesforce

WordPress plugin that maps and syncs data between Salesforce objects and WordPress objects.
https://wordpress.org/plugins/object-sync-for-salesforce/
GNU General Public License v2.0
93 stars 49 forks source link

Remove arrow functions that are only supported in PHP 7.4. Thanks to WordPress users @ofrayechiel and @trohrer for the report. #451

Closed jonathanstegall closed 2 years ago

jonathanstegall commented 2 years ago

What does this Pull Request do?

This removes the arrow functions because, as stated by @trohrer:

Unfortunately ofrayechiel is correct. When Zend added arrow functions in 7.4, it now throws errors in the syntax parser of existing, older versions of PHP. This fixes #450.

How do I test this Pull Request?