fix: accept string argument
This commit is contained in:
@@ -50,13 +50,13 @@ class AppRuntime implements RuntimeExtensionInterface
|
|||||||
return 'nationality' === $property ? $country->getNationality() : $country->getName();
|
return 'nationality' === $property ? $country->getNationality() : $country->getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function bpnPickupLabel(?int $id): ?string
|
public function bpnPickupLabel($id): ?string
|
||||||
{
|
{
|
||||||
if (null === $id) {
|
if (null === $id) {
|
||||||
return 'keine Busbegleitung';
|
return 'keine Busbegleitung';
|
||||||
}
|
}
|
||||||
|
|
||||||
$pickup = $this->pickups->get($id);
|
$pickup = $this->pickups->get((int) $id);
|
||||||
|
|
||||||
if (null === $pickup) {
|
if (null === $pickup) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user