Parse error: syntax error, unexpected ';', expecting ')' in

I am encountering an error when trying to edit or add fields in the Studio which says:

Parse error: syntax error, unexpected ‘;’, expecting ‘)’ in /opt/bitnami/apps/sugarcrm/htdocs/custom/modules/Contacts/metadata/subpanels/subpaneldefs.php on line 261

I have tried…

PHP Version 5.4.40
SuiteCRM 7.1.6 - I intend to upgrade to 7.5.1 but have done so already which does not resolve this issue and I would prefer to resolve this before upgrading.
I have attached a screenshot of the error and a copy of the file mentioned in the error.

Any help would be very much appreciated.

Can you please verify if you encounter the same issue with the latest version from the website or Github master branch and provide us feedback?

My apologies for the delay.

I have tried this and I encounter the same problem. Would I be right in saying this seems like something environmental? If so, what is the best way to identify what the problem is?

FIXED: Went into the problem file and replaced the ; with ) - as the error message described.

Then turned off display_errors in php.ini - all working.