We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2e9291 commit ea9f858Copy full SHA for ea9f858
src/Server/Request/XmlParser.php
@@ -23,7 +23,7 @@ class XmlParser implements RequestParserInterface
23
public function parse(string $rawBody, string $contentType): array
24
{
25
try {
26
- return Xml::toArray($rawBody) ?? [];
+ return Xml::toArray($rawBody);
27
} catch (InvalidArgumentException $e) {
28
if ($this->throwException) {
29
throw new BadRequestHttpException('Invalid XML data in request body: ' . $e->getMessage());
0 commit comments