fix: take incomplete bpn response data into account
This commit is contained in:
@@ -221,8 +221,8 @@ class ResponseParser
|
||||
->setId($id)
|
||||
->setBusProId($busProId)
|
||||
->setCode((string) $item->attributes()['code'])
|
||||
->setCity((string) $item->xpath('ort')[0])
|
||||
->setStreet((string) $item->xpath('strasse')[0])
|
||||
->setCity($item->xpath('ort') ? (string) $item->xpath('ort')[0] : null)
|
||||
->setStreet($item->xpath('strasse') ? (string) $item->xpath('strasse')[0] : '')
|
||||
;
|
||||
$pickups[$busProId] = $pickup;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user