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