fix: avoid type error

This commit is contained in:
Björn Fromme
2024-12-16 09:45:01 +01:00
parent fe7298eb2d
commit 343aa24450
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ class PickupResolver
return false;
}
$teamerPickups = array_map(function (int $id) {
return $this->pickupDataProvider->get($id);
$teamerPickups = array_map(function (mixed $id) {
return $this->pickupDataProvider->get((int) $id);
}, $teamer->getPickups());
foreach ($teamerPickups as $teamerPickup) {