Description
It seems that "$doc = @simplexml_load_string($xml);" returned false when error on interpreting xml string.
I think change "public function getMessages(SimpleXMLElement $doc)" to "public function getMessages($doc)" will fix this error.
It seems that "$doc = @simplexml_load_string($xml);" returned false when error on interpreting xml string.
I think change "public function getMessages(SimpleXMLElement $doc)" to "public function getMessages($doc)" will fix this error.