Changing the function to public function setup(SimpleXMLElement $element, $value, $group = null)
in captcha.php solves the issue here
Fixed, thanks.
Changing the function to
public function setup(SimpleXMLElement $element, $value, $group = null)
in captcha.php solves the issue here