fix: insurance ids are strings
This commit is contained in:
1 parent
4a6b9cd64d
commit
ff241f437f
1 file changed
+2
-2
@@ -431,9 +431,9 @@ class BookingEditDraftService
|
|||||||
/**
|
/**
|
||||||
* Resolves an insurance ID to an Insurance object.
|
* Resolves an insurance ID to an Insurance object.
|
||||||
*/
|
*/
|
||||||
private function resolveInsurance(?int $insuranceId, Travel $travel): ?object
|
private function resolveInsurance(?string $insuranceId, Travel $travel): ?object
|
||||||
{
|
{
|
||||||
if (null === $insuranceId) {
|
if (null === $insuranceId || '' === $insuranceId) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user