Merge branch 'master' into develop

This commit is contained in:
Björn Fromme
2025-01-02 13:03:36 +01:00
33 changed files with 633 additions and 378 deletions
+5 -1
View File
@@ -175,8 +175,12 @@ class Destination implements TimestampableEntityInterface, SoftDeletableEntityIn
return $this;
}
public function getPickup(int $id): ?Pickup
public function getPickup(?int $id): ?Pickup
{
if (null === $id) {
return null;
}
foreach ($this->getPickups() as $pickup) {
if ($id === $pickup['busProId']) {
return Pickup::fromArray($pickup);