From d97e7c6c3b5ecae6140504d75d1a8bcd312d822c Mon Sep 17 00:00:00 2001 From: AxenT Date: Mon, 9 Sep 2024 14:44:27 +0200 Subject: [PATCH] Update Helper.php get Body return StreamInterface --- src/Helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Helper.php b/src/Helper.php index c946811..8a9a817 100644 --- a/src/Helper.php +++ b/src/Helper.php @@ -28,7 +28,7 @@ public static function extractMessageData($httpMessage) // The assumption for now is that a syncronous response will always be XML. if ($httpMessage instanceof ResponseInterface) { - $xmlString = (string)$httpMessage->getBody(); + $xmlString = $httpMessage->getBody()->getContents(); $xmlString = simplexml_load_string($xmlString); return static::parseXmlElement($xmlString);