Skip to content
Snippets Groups Projects
Commit 47f79857 authored by Yas Naoi's avatar Yas Naoi Committed by Yas Naoi
Browse files

Issue #3306359 by yas: Fix the deprecation: "Implicit conversion from float to int loses precision"

parent acc6eaae
No related branches found
No related tags found
3 merge requests!1316Issue #3310263: Release 4.5.0,!1260Issue #3307397: Release 4.4.0,!1240Issue #3306359: Fix the deprecation: "Implicit conversion from float to int loses precision"
......@@ -225,7 +225,7 @@ class InstanceTest extends AwsCloudTestBase {
];
// Termination.
$edit[$i]['termination_timestamp[0][value][date]'] = date('Y-m-d', time() + 365.25 * 3);
$edit[$i]['termination_timestamp[0][value][date]'] = date('Y-m-d', time() + (int) (365.25 * 3));
$edit[$i]['termination_timestamp[0][value][time]'] = '00:00:00';
$edit[$i]['termination_protection'] = '1';
$this->updateInstanceMockData(InstanceTest::class, $i, $edit[$i]['name'], $regions, 'stopped', $cloud_context);
......
......@@ -190,7 +190,7 @@ class OpenStackInstanceTest extends OpenStackTestBase {
if ($openstack_ec2_api) {
// Termination.
$edit[$i]['termination_timestamp[0][value][date]'] = date('Y-m-d', time() + 365.25 * 3);
$edit[$i]['termination_timestamp[0][value][date]'] = date('Y-m-d', time() + (int) (365.25 * 3));
$edit[$i]['termination_timestamp[0][value][time]'] = '00:00:00';
$edit[$i]['termination_protection'] = '1';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment