I'm trying to upgrade the PHP version of my WP website, which is hosted on SiteGround. The upgrade tool displays the following error:
33 | WARNING | As of PHP 7, using the deprecated PHP4-style class constructors is not supported
This is the code I found at the given location:
function gc_XmlBuilder($indent = ' ') { $this->indent = $indent; $this->xml = ''."\n"; }
How do I fix this problem?
Since you used to be able to define constructors by class name, but this has been deprecated since PHP 7:
Error example, according to the documentation: