fix: ensure correct argument type

This commit is contained in:
Björn Fromme
2024-11-29 12:27:18 +01:00
parent 4b5556995f
commit 1c55b4785c
+2 -2
View File
@@ -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