From 1c55b4785c10151751e27b47547dc51ff9c140ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Fri, 29 Nov 2024 12:27:18 +0100 Subject: [PATCH] fix: ensure correct argument type --- 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 d3afdfd..aee00db 100644 --- a/src/Twig/AppRuntime.php +++ b/src/Twig/AppRuntime.php @@ -88,9 +88,9 @@ class AppRuntime implements RuntimeExtensionInterface return 'ab '.$pickup->getCity(); } - public function hasPickup(?int $pickupId, Teamer $teamer): bool + public function hasPickup($pickupId, Teamer $teamer): bool { - return $this->pickupResolver->hasPickup($pickupId, $teamer); + return $this->pickupResolver->hasPickup((int) $pickupId, $teamer); } public function fileIconFilter(Environment $environment, string $mimeType, ?string $classes = 'w-4 h-4'): string