DIVI update 3.0.56 generates expecting T_PAAMAYIM_NEKUDOTAYIM error in logs


Just had 4 sites affected when updating to latest version of DIVI. The effect is that you get an error 500 when trying to access the site after the update. The logs show

[02-Jul-2017 07:23:40 UTC] PHP Parse error: syntax error, unexpected ‘)’, expecting T_PAAMAYIM_NEKUDOTAYIM in /path/to/yoursite/wp-content/themes/Divi/epanel/custom_functions.php on line 2082

The solution that worked for me was to raise the default level of PHP provided by Hosting providers cpanel to 5.6 from 5.3 for the sites affected. Hopefully a more detailed report of what has happened will be made available.