Merge branch 'master' into develop

This commit is contained in:
Björn Fromme committed 2025-01-02 13:03:36 +01:00
commit 8efa7ecdb6
33 files changed
+633 -378

No files matched your search

+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);