fix: avoid type error
This commit is contained in:
@@ -23,8 +23,8 @@ class PickupResolver
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$teamerPickups = array_map(function (int $id) {
|
$teamerPickups = array_map(function (mixed $id) {
|
||||||
return $this->pickupDataProvider->get($id);
|
return $this->pickupDataProvider->get((int) $id);
|
||||||
}, $teamer->getPickups());
|
}, $teamer->getPickups());
|
||||||
|
|
||||||
foreach ($teamerPickups as $teamerPickup) {
|
foreach ($teamerPickups as $teamerPickup) {
|
||||||
|
|||||||
@@ -88,9 +88,9 @@ class AppRuntime implements RuntimeExtensionInterface
|
|||||||
return 'ab '.$pickup->getCity();
|
return 'ab '.$pickup->getCity();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasPickup($pickupId, Teamer $teamer): bool
|
public function hasPickup(?int $pickupId, Teamer $teamer): bool
|
||||||
{
|
{
|
||||||
return $this->pickupResolver->hasPickup((int) $pickupId, $teamer);
|
return $this->pickupResolver->hasPickup($pickupId, $teamer);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function fileIconFilter(Environment $environment, string $mimeType, ?string $classes = 'w-4 h-4'): string
|
public function fileIconFilter(Environment $environment, string $mimeType, ?string $classes = 'w-4 h-4'): string
|
||||||
|
|||||||
Reference in New Issue
Block a user