function __construct($indent = ' ') { $this->indent = $indent; $this->xml = '<?xml version="1.0" encoding="utf-8"?>'."\n"; }
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: