mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-03-14 12:23:33 +00:00
Use root element name for root of array rather than "rss"
This commit is contained in:
parent
afc29e15d5
commit
9c5b5b33f5
2 changed files with 11 additions and 11 deletions
|
|
@ -23,7 +23,7 @@ class XmlResponseParser implements ResponseParser
|
|||
throw new Exception('Invalid XML content');
|
||||
}
|
||||
|
||||
return ['rss' => $this->xmlToArray($xml)];
|
||||
return [$xml->getName() => $this->xmlToArray($xml)];
|
||||
} catch (Exception $exception) {
|
||||
Log::warning('Failed to parse XML response: '.$exception->getMessage());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue