diff --git a/src/Twig/AppRuntime.php b/src/Twig/AppRuntime.php index 80cb8e5..26278fa 100644 --- a/src/Twig/AppRuntime.php +++ b/src/Twig/AppRuntime.php @@ -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;