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