Skip to content

Commit 8910c51

Browse files
author
Emre Çalışkan
committed
changed expected result for PHP 8.4
1 parent d1e695f commit 8910c51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Carbon/SettersTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ public function testTimestampSetter()
241241
$d->timestamp = 1600887164.88952298;
242242
$this->assertSame('2020-09-23 14:52:44.889523', $d->format('Y-m-d H:i:s.u'));
243243

244-
$d->setTimestamp(1599828571.235612);
245-
$this->assertSame('2020-09-11 08:49:31.235612', $d->format('Y-m-d H:i:s.u'));
244+
$d->setTimestamp(1599828571.23561248);
245+
$this->assertSame(PHP_VERSION_ID < 80400 ? '2020-09-11 08:49:31.235612' : '2020-09-11 08:49:31.235613', $d->format('Y-m-d H:i:s.u'));
246246

247247
$d->timestamp = '0.88951247 1600887164';
248248
$this->assertSame('2020-09-23 14:52:44.889512', $d->format('Y-m-d H:i:s.u'));

0 commit comments

Comments
 (0)