diff --git a/src/Form/DestinationType.php b/src/Form/DestinationType.php index 0c153a6..6ed6247 100644 --- a/src/Form/DestinationType.php +++ b/src/Form/DestinationType.php @@ -68,7 +68,7 @@ class DestinationType extends AbstractType $hotelLabel = null; if (null !== $hotelBusProId) { - $hotel = $this->hotelDataProvider->get($hotelBusProId); + $hotel = $this->hotelDataProvider->get((int) $hotelBusProId); $hotelLabel = sprintf('%s (%s)', $hotel->getName(), $hotel->getCode()); }