fix: accept string argument

This commit is contained in:
Björn Fromme
2024-01-28 18:18:22 +01:00
parent f88e1d5094
commit 838e1902d1
+2 -2
View File
@@ -50,13 +50,13 @@ class AppRuntime implements RuntimeExtensionInterface
return 'nationality' === $property ? $country->getNationality() : $country->getName();
}
public function bpnPickupLabel(?int $id): ?string
public function bpnPickupLabel($id): ?string
{
if (null === $id) {
return 'keine Busbegleitung';
}
$pickup = $this->pickups->get($id);
$pickup = $this->pickups->get((int) $id);
if (null === $pickup) {
return null;