fix: accept string argument
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user