chore: bump project to php 8.5
This commit is contained in:
1 parent
838b8944a2
commit
1446211d22
8 files changed
+35
-10
No files matched your search
@@ -21,7 +21,14 @@ class BpnPickupChoiceLoader implements ChoiceLoaderInterface
|
||||
$pickups = $this->dataProvider->getAll();
|
||||
|
||||
foreach ($pickups as $pickup) {
|
||||
$choices[$pickup->getCity()] = $pickup->getBusProId();
|
||||
// The city is the label as well as the key, so a pickup the API reports
|
||||
// without one has nothing to select and is left out.
|
||||
$city = $pickup->getCity();
|
||||
if (null === $city) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$choices[$city] = $pickup->getBusProId();
|
||||
}
|
||||
|
||||
ksort($choices);
|
||||
|
||||
Reference in new issue
Block a user