chore: bump project to php 8.5

This commit is contained in:
fromme committed 2026-10-01 09:55:34 +02:00
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);