From de5117c200a5bf2ba869e1dd74c9b41f038afb73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 1 Jul 2024 17:55:51 +0200 Subject: [PATCH] fix: convert type to provide expected argument --- src/Form/DestinationType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }