From 838e1902d17653ceaacfcc53a16ed397de2048bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Sun, 28 Jan 2024 18:18:22 +0100 Subject: [PATCH] fix: accept string argument --- src/Twig/AppRuntime.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;