File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -202,9 +202,9 @@ private function processOperationalRiskScalesTypes(
202202 $ scalesValueData = $ operationalInstanceRiskData ['operationalInstanceRiskScales ' ][
203203 $ externalScaleTypeId
204204 ];
205- $ operationalInstanceRiskScale ->setBrutValue ($ scalesValueData ['brutValue ' ]);
206- $ operationalInstanceRiskScale ->setNetValue ($ scalesValueData ['netValue ' ]);
207- $ operationalInstanceRiskScale ->setTargetedValue ($ scalesValueData ['targetedValue ' ]);
205+ $ operationalInstanceRiskScale ->setBrutValue (( int ) $ scalesValueData ['brutValue ' ]);
206+ $ operationalInstanceRiskScale ->setNetValue (( int ) $ scalesValueData ['netValue ' ]);
207+ $ operationalInstanceRiskScale ->setTargetedValue (( int ) $ scalesValueData ['targetedValue ' ]);
208208 if ($ areImpactScaleTypesValuesDifferent ) {
209209 /* We convert from the importing new scales to the current anr scales. */
210210 $ this ->operationalRiskScaleImportProcessor ->adjustOperationalInstanceRisksScales (
@@ -217,7 +217,7 @@ private function processOperationalRiskScalesTypes(
217217 /* The format before v2.11.0. Update only first 5 scales (ROLFP if not changed by user). */
218218 } elseif ($ index < 5 ) {
219219 foreach (static ::$ oldInstanceRiskFieldsMapToScaleTypesFields [$ index ] as $ oldFiled => $ typeField ) {
220- $ operationalInstanceRiskScale ->{'set ' . $ typeField }($ operationalInstanceRiskData [$ oldFiled ]);
220+ $ operationalInstanceRiskScale ->{'set ' . $ typeField }(( int ) $ operationalInstanceRiskData [$ oldFiled ]);
221221 }
222222 if ($ areImpactScaleTypesValuesDifferent ) {
223223 /* We convert from the importing new scales to the current anr scales. */
You can’t perform that action at this time.
0 commit comments