Skip to content

Commit a34c4ab

Browse files
committed
Fix nullable values
1 parent 2f1c02d commit a34c4ab

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Service/TokenService.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -416,17 +416,17 @@ private function tokenMapping(array $dataJson, ?Token $token = null): Token
416416
? new DateTime($dataJson['rentStartDate'])
417417
: null);
418418
$token->setInitialMaintenanceReserve($dataJson['initialMaintenanceReserve'] ?: null);
419-
$token->setInitialLaunchDate($dataJson['initialLaunchDate']);
420-
$token->setSeriesNumber($dataJson['seriesNumber']);
421-
$token->setConstructionYear($dataJson['constructionYear']);
422-
$token->setConstructionType($dataJson['constructionType']);
423-
$token->setRoofType($dataJson['roofType']);
424-
$token->setAssetParking($dataJson['assetParking']);
425-
$token->setFoundation($dataJson['foundation']);
426-
$token->setHeating($dataJson['heating']);
427-
$token->setCooling($dataJson['cooling']);
428-
$token->setTokenIdRules($dataJson['tokenIdRules']);
429-
$token->setRentCalculationType($dataJson['rentCalculationType']);
419+
$token->setInitialLaunchDate($dataJson['initialLaunchDate'] ?: null);
420+
$token->setSeriesNumber($dataJson['seriesNumber'] ?: null);
421+
$token->setConstructionYear($dataJson['constructionYear'] ?: null);
422+
$token->setConstructionType($dataJson['constructionType'] ?: null);
423+
$token->setRoofType($dataJson['roofType'] ?: null);
424+
$token->setAssetParking($dataJson['assetParking'] ?: null);
425+
$token->setFoundation($dataJson['foundation'] ?: null);
426+
$token->setHeating($dataJson['heating'] ?: null);
427+
$token->setCooling($dataJson['cooling'] ?: null);
428+
$token->setTokenIdRules($dataJson['tokenIdRules'] ?: null);
429+
$token->setRentCalculationType($dataJson['rentCalculationType'] ?: null);
430430

431431
$token->setLastUpdate(new DateTime());
432432

0 commit comments

Comments
 (0)